3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Test $var"; } class foo { var $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } class moo { static public function test2(){ echo "test2"; } } $a = new foo(); var_dump($a); $a->arr[0]("testvalue"); /***************************/ $x[0] = "test2"; moo::$x[0]();

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.60.0110.00716.88
8.3.50.0070.01116.43
8.3.40.0070.00718.80
8.3.30.0100.00718.70
8.3.20.0040.00420.02
8.3.10.0040.00423.65
8.3.00.0000.00823.48
8.2.180.0150.00616.50
8.2.170.0140.00722.96
8.2.160.0120.00320.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00020.91
8.2.120.0030.00526.35
8.2.110.0060.00320.98
8.2.100.0040.00817.93
8.2.90.0030.00519.25
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0080.00018.03
8.2.50.0080.00418.09
8.2.40.0000.00822.44
8.2.30.0000.00719.42
8.2.20.0060.00317.74
8.2.10.0050.00218.02
8.2.00.0040.00418.02
8.1.280.0100.00325.92
8.1.270.0090.00622.07
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00622.55
8.1.230.0070.00419.17
8.1.220.0040.00417.88
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0030.00618.50
8.1.160.0020.00520.63
8.1.150.0000.00818.79
8.1.140.0030.00519.53
8.1.130.0040.00417.55
8.1.120.0000.00717.41
8.1.110.0060.00317.40
8.1.100.0000.00717.36
8.1.90.0040.00417.30
8.1.80.0040.00417.39
8.1.70.0030.00317.41
8.1.60.0030.00517.55
8.1.50.0030.00717.54
8.1.40.0000.00817.43
8.1.30.0000.00817.70
8.1.20.0050.00317.67
8.1.10.0040.00417.58
8.1.00.0080.00017.53
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0070.00017.39
8.0.260.0060.00017.17
8.0.250.0070.00016.99
8.0.240.0030.00316.95
8.0.230.0000.00716.91
8.0.220.0000.00716.96
8.0.210.0000.00916.95
8.0.200.0030.00317.06
8.0.190.0050.00317.00
8.0.180.0000.00817.00
8.0.170.0000.00716.88
8.0.160.0000.00717.05
8.0.150.0070.00016.89
8.0.140.0050.00216.96
8.0.130.0000.00613.44
8.0.120.0040.00416.91
8.0.110.0020.00516.96
8.0.100.0030.00516.83
8.0.90.0030.00516.83
8.0.80.0030.01416.96
8.0.70.0040.00416.93
8.0.60.0040.00416.90
8.0.50.0070.00016.93
8.0.30.0080.01216.99
8.0.20.0080.01117.40
8.0.10.0000.00716.92
8.0.00.0100.00916.73
7.4.330.0050.00016.67
7.4.320.0030.00316.31
7.4.300.0000.00716.61
7.4.290.0030.00316.59
7.4.280.0040.00416.51
7.4.270.0030.00316.46
7.4.260.0030.00316.47
7.4.250.0040.00416.57
7.4.240.0030.00316.41
7.4.230.0000.00716.70
7.4.220.0060.01716.55
7.4.210.0090.00716.58
7.4.200.0030.00316.40
7.4.160.0120.00316.66
7.4.150.0120.00617.40
7.4.140.0160.00817.86
7.4.130.0090.00816.51
7.4.120.0090.00916.46
7.4.110.0150.00816.58
7.4.100.0100.01016.48
7.4.90.0030.01416.50
7.4.80.0140.00719.39
7.4.70.0150.00616.56
7.4.60.0120.00716.52
7.4.50.0070.00316.65
7.4.40.0060.01116.41
7.4.30.0070.01016.59
7.4.00.0060.01214.80
7.3.330.0000.00613.21
7.3.320.0030.00313.23
7.3.310.0070.00016.42
7.3.300.0000.00716.38
7.3.290.0000.00716.38
7.3.280.0070.00916.39
7.3.270.0070.01017.40
7.3.260.0130.00316.46
7.3.250.0080.00916.50
7.3.240.0110.00916.30
7.3.230.0160.00316.57
7.3.210.0100.00716.64
7.3.200.0140.00719.39
7.3.190.0100.00916.39
7.3.180.0160.00016.66
7.3.170.0040.01816.52
7.3.160.0150.00016.54
7.3.120.0100.01014.92
7.3.110.0030.00914.97
7.3.100.0100.00714.99
7.3.90.0070.00414.79
7.3.80.0060.00314.96
7.3.70.0090.00914.97
7.3.60.0070.00714.82
7.3.50.0030.01014.79
7.3.40.0070.00714.86
7.3.30.0030.00614.80
7.3.20.0080.00416.43
7.3.10.0140.00516.56
7.3.00.0050.00716.65
7.2.330.0030.01416.71
7.2.320.0070.01316.33
7.2.310.0090.01516.36
7.2.300.0030.01316.50
7.2.290.0080.00816.38
7.2.250.0070.01014.83
7.2.240.0080.01215.22
7.2.230.0040.00714.97
7.2.220.0000.01015.18
7.2.210.0120.00314.71
7.2.200.0100.00614.91
7.2.190.0000.01515.07
7.2.180.0080.00814.79
7.2.170.0080.00615.23
7.2.130.0090.01116.81
7.2.120.0130.01616.69
7.2.110.0120.01216.51
7.2.100.0180.01116.70
7.2.90.0000.01816.90
7.2.80.0190.00816.86
7.2.70.0130.00616.91
7.2.60.0090.00916.86
7.2.50.0040.01416.82
7.2.40.0130.01016.89
7.2.30.0060.01217.02
7.2.20.0070.01016.66
7.2.10.0110.00716.75
7.2.00.0000.01117.92
7.1.330.0100.00315.75
7.1.320.0060.00615.96
7.1.310.0130.00315.64
7.1.300.0000.01115.48
7.1.290.0090.00615.52
7.1.280.0100.00715.81
7.1.270.0090.00015.75
7.1.260.0060.00615.84
7.1.250.0170.00415.36
7.1.200.0040.00815.90
7.1.100.0060.00618.11
7.1.70.0000.00717.29
7.1.60.0140.01119.40
7.1.50.0000.01417.00
7.1.00.0100.07322.29
7.0.200.0480.00414.51
7.0.60.0130.07721.73
7.0.50.0100.04717.96
7.0.40.0030.08320.02
7.0.30.0130.04320.08
7.0.20.0270.08020.26
7.0.10.0130.07720.20
7.0.00.0030.05720.06
5.6.280.0030.04021.10
5.6.210.0070.04320.52
5.6.200.0070.07018.18
5.6.190.0030.04020.57
5.6.180.0230.08020.47
5.6.170.0300.06720.54
5.6.160.0130.07020.43
5.6.150.0200.03718.19
5.6.140.0030.04318.18
5.6.130.0100.04018.20
5.6.120.0100.08721.13
5.6.110.0100.03720.98
5.6.100.0130.06720.91
5.6.90.0100.03720.96
5.6.80.0130.06320.45
5.5.350.0030.09320.30
5.5.340.0000.04718.07
5.5.330.0000.04320.43
5.5.320.0630.06320.25
5.5.310.0330.07320.37
5.5.300.0030.07018.08
5.5.290.0100.03717.93
5.5.280.0130.05720.74
5.5.270.0070.08020.65
5.5.260.0100.03320.79
5.5.250.0030.04020.79
5.5.240.0170.08020.15

preferences:
52.43 ms | 400 KiB | 5 Q