3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Testing: $var\n"; } class foo { var $arr = "test"; function bar($str) { echo is_callable( $this->arr )? 'yes' : 'no'; $this->arr($str); } } $foo = new foo; $foo->bar("bla"); // yes

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0090.00618.73
8.3.30.0180.00018.90
8.3.20.0000.00719.93
8.3.10.0000.00721.76
8.3.00.0030.00521.93
8.2.170.0110.00422.96
8.2.160.0030.01221.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00320.63
8.2.120.0000.00726.35
8.2.110.0090.00020.52
8.2.100.0040.00717.91
8.2.90.0040.00419.09
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00617.93
8.2.50.0000.00918.09
8.2.40.0050.00322.00
8.2.30.0070.00019.49
8.2.20.0030.00617.80
8.2.10.0000.00717.98
8.2.00.0020.00518.00
8.1.270.0130.00622.18
8.1.260.0060.00328.09
8.1.250.0110.00328.09
8.1.240.0090.00023.77
8.1.230.0000.01120.91
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.22
8.1.190.0030.00516.98
8.1.180.0000.00818.10
8.1.170.0030.00518.46
8.1.160.0040.00420.74
8.1.150.0040.00418.82
8.1.140.0030.00519.38
8.1.130.0050.00317.59
8.1.120.0000.00717.28
8.1.110.0000.00717.46
8.1.100.0000.00917.34
8.1.90.0040.00417.38
8.1.80.0040.00417.44
8.1.70.0040.00417.41
8.1.60.0000.00817.44
8.1.50.0030.00517.55
8.1.40.0000.00917.51
8.1.30.0030.00517.64
8.1.20.0040.00417.58
8.1.10.0040.00417.46
8.1.00.0030.00617.50
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0040.00417.23
8.0.260.0040.00417.29
8.0.250.0000.00717.01
8.0.240.0030.00316.94
8.0.230.0020.00516.98
8.0.220.0020.00516.85
8.0.210.0040.00316.77
8.0.200.0090.00016.81
8.0.190.0080.00016.85
8.0.180.0080.00016.86
8.0.170.0000.00816.92
8.0.160.0000.00716.79
8.0.150.0050.00316.78
8.0.140.0080.00016.86
8.0.130.0000.00613.32
8.0.120.0030.00516.74
8.0.110.0070.00016.87
8.0.100.0000.00816.85
8.0.90.0040.00416.88
8.0.80.0140.00516.84
8.0.70.0020.00516.94
8.0.60.0050.00317.00
8.0.50.0000.00716.91
8.0.30.0110.00616.98
8.0.20.0100.00817.40
8.0.10.0040.00417.00
8.0.00.0100.00916.90
7.4.330.0050.00016.83
7.4.320.0030.00316.29
7.4.300.0030.00316.57
7.4.290.0030.00316.48
7.4.280.0060.00316.58
7.4.270.0080.00016.59
7.4.260.0040.00716.34
7.4.250.0050.00316.52
7.4.240.0030.00316.50
7.4.230.0030.00316.40
7.4.220.0150.00316.46
7.4.210.0110.00316.53
7.4.200.0000.00716.59
7.4.160.0090.00616.43
7.4.150.0140.00417.40
7.4.140.0060.01317.86
7.4.130.0090.01216.60
7.4.120.0090.00816.54
7.4.110.0060.01216.36
7.4.100.0090.00916.26
7.4.90.0110.00716.39
7.4.80.0060.01219.39
7.4.70.0100.01016.41
7.4.60.0060.01216.54
7.4.50.0090.00316.43
7.4.40.0040.02116.73
7.4.30.0100.01016.41
7.4.00.0050.01214.90
7.3.330.0020.00213.19
7.3.320.0040.00413.32
7.3.310.0040.00416.22
7.3.300.0000.00716.23
7.3.290.0030.00316.25
7.3.280.0090.00916.35
7.3.270.0060.01217.40
7.3.260.0060.01116.60
7.3.250.0120.00716.49
7.3.240.0090.00916.38
7.3.230.0140.01116.39
7.3.210.0040.01316.29
7.3.200.0130.00619.39
7.3.190.0030.01516.39
7.3.180.0110.00716.61
7.3.170.0120.00616.32
7.3.160.0040.01116.46
7.3.120.0110.00415.02
7.3.110.0070.01114.95
7.3.100.0000.01614.85
7.3.90.0040.00915.06
7.3.80.0040.01114.49
7.3.70.0040.01114.84
7.3.60.0060.00314.58
7.3.50.0030.01014.91
7.3.40.0090.00614.82
7.3.30.0040.00914.85
7.3.20.0070.00716.71
7.3.10.0000.01516.62
7.3.00.0120.00316.38
7.2.330.0090.00916.79
7.2.320.0100.00616.39
7.2.310.0100.00616.46
7.2.300.0100.00616.57
7.2.290.0110.00516.76
7.2.250.0070.01015.15
7.2.240.0070.01315.00
7.2.230.0040.01115.00
7.2.220.0030.01314.80
7.2.210.0030.01314.85
7.2.200.0070.00414.65
7.2.190.0090.00314.77
7.2.180.0030.01315.14
7.2.170.0030.01014.75
7.2.60.0040.01116.68
7.2.00.0000.01219.45
7.1.330.0060.00915.90
7.1.320.0000.01315.50
7.1.310.0090.00315.66
7.1.300.0000.01415.47
7.1.290.0080.00315.40
7.1.280.0040.00815.49
7.1.270.0120.00315.82
7.1.260.0030.00615.48
7.1.200.0070.00715.82
7.1.100.0040.00718.04
7.1.70.0000.00717.16
7.1.60.0100.01019.40
7.1.50.0000.01116.89
7.1.00.0100.07022.32
7.0.200.0460.00914.83
7.0.60.0200.08021.77
7.0.50.0100.08017.95
7.0.40.0070.04020.09
7.0.30.0330.04720.17
7.0.20.0130.04720.33
7.0.10.0070.05720.30
7.0.00.0170.07320.14
5.6.280.0030.03020.79
5.6.210.0030.04020.67
5.6.200.0070.03718.27
5.6.190.0030.04720.47
5.6.180.0230.05020.48
5.6.170.0230.07320.52
5.6.160.0030.07320.54
5.6.150.0030.06318.29
5.6.140.0070.04318.18
5.6.130.0000.08318.21
5.6.120.0070.03721.13
5.6.110.0100.04021.15
5.6.100.0100.08020.99
5.6.90.0070.06721.02
5.6.80.0130.07720.38
5.5.350.0230.07720.43
5.5.340.0030.07717.95
5.5.330.0030.05020.57
5.5.320.0400.05320.29
5.5.310.0330.06320.24
5.5.300.0130.07718.03
5.5.290.0070.08318.08
5.5.280.0100.04020.90
5.5.270.0000.05720.76
5.5.260.0070.03720.64
5.5.250.0100.08020.78
5.5.240.0200.05020.19

preferences:
45.82 ms | 400 KiB | 5 Q