3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $x = 123; public function printX($test) { print $test->x; } } $test1 = new Test; $test2 = new Test; $test1->printX($test2);

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.70.0140.00718.24
8.3.60.0110.00718.30
8.3.50.0110.00416.48
8.3.40.0070.00718.67
8.3.30.0140.00718.41
8.3.20.0070.00020.90
8.3.10.0050.00323.65
8.3.00.0050.00222.48
8.2.190.0140.00716.58
8.2.180.0040.01116.50
8.2.170.0120.00322.96
8.2.160.0100.01319.31
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00719.77
8.2.120.0060.00326.35
8.2.110.0060.01322.25
8.2.100.0090.00317.66
8.2.90.0050.00319.63
8.2.80.0060.00320.59
8.2.70.0040.00417.92
8.2.60.0060.00318.17
8.2.50.0040.00418.10
8.2.40.0070.00019.38
8.2.30.0040.00419.11
8.2.20.0040.00418.01
8.2.10.0030.00619.23
8.2.00.0070.00018.00
8.1.280.0080.00625.92
8.1.270.0070.00020.39
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00020.99
8.1.230.0050.00520.93
8.1.220.0050.00317.74
8.1.210.0030.00618.91
8.1.200.0040.00417.23
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0030.00518.41
8.1.160.0030.00618.92
8.1.150.0030.00618.70
8.1.140.0000.00820.18
8.1.130.0040.00417.43
8.1.120.0050.00217.37
8.1.110.0050.00217.41
8.1.100.0000.00717.28
8.1.90.0030.00517.36
8.1.80.0000.00717.41
8.1.70.0000.00717.42
8.1.60.0000.00817.53
8.1.50.0040.00417.53
8.1.40.0000.00817.56
8.1.30.0040.00717.65
8.1.20.0060.00317.65
8.1.10.0040.00417.46
8.1.00.0030.00617.50
8.0.300.0000.00820.02
8.0.290.0080.00816.58
8.0.280.0000.00718.36
8.0.270.0030.00317.33
8.0.260.0000.00716.73
8.0.250.0030.00316.95
8.0.240.0070.00016.94
8.0.230.0040.00416.93
8.0.220.0040.00416.82
8.0.210.0000.00616.81
8.0.200.0060.00016.94
8.0.190.0040.00416.80
8.0.180.0080.00016.74
8.0.170.0080.00016.91
8.0.160.0040.00416.72
8.0.150.0000.01116.77
8.0.140.0070.00016.78
8.0.130.0030.00313.30
8.0.120.0060.00616.69
8.0.110.0030.00316.86
8.0.100.0050.00316.91
8.0.90.0070.00016.70
8.0.80.0040.01116.82
8.0.70.0070.00016.79
8.0.60.0000.00716.83
8.0.50.0050.00216.66
8.0.30.0130.00817.09
8.0.20.0100.01017.25
8.0.10.0030.00317.01
8.0.00.0070.01416.61
7.4.330.0000.00515.55
7.4.320.0000.00716.55
7.4.300.0030.00316.50
7.4.290.0030.00316.41
7.4.280.0000.00816.40
7.4.270.0030.00316.59
7.4.260.0030.00316.63
7.4.250.0040.00416.46
7.4.240.0000.00716.49
7.4.230.0040.00416.70
7.4.220.0000.00716.53
7.4.210.0070.00816.55
7.4.200.0000.00716.59
7.4.160.0060.00916.47
7.4.140.0100.00717.86
7.4.130.0090.00916.40
7.4.120.0100.00716.52
7.4.110.0130.00616.55
7.4.100.0060.01216.50
7.4.90.0110.01116.51
7.4.80.0070.01019.39
7.4.70.0080.00816.49
7.4.60.0060.01016.70
7.4.50.0060.01016.33
7.4.40.0120.00616.47
7.4.00.0100.00814.59
7.3.330.0000.00513.10
7.3.320.0050.00013.26
7.3.310.0000.00816.18
7.3.300.0000.00616.09
7.3.290.0060.00316.24
7.3.280.0090.00716.18
7.3.260.0100.00816.40
7.3.240.0110.00516.40
7.3.230.0140.00316.20
7.3.210.0150.00316.23
7.3.200.0040.01816.55
7.3.190.0070.01116.20
7.3.180.0120.00916.38
7.3.170.0070.01616.45
7.3.160.0090.01416.36
7.3.120.0030.01614.72
7.3.110.0070.01114.54
7.3.100.0080.00414.64
7.3.90.0080.00614.71
7.3.80.0120.00314.29
7.3.70.0040.01414.67
7.3.60.0000.01514.53
7.3.50.0070.00314.75
7.3.40.0040.01114.77
7.3.30.0060.01214.63
7.3.20.0450.00815.53
7.3.10.0470.00315.66
7.3.00.0410.00515.48
7.2.330.0090.01216.45
7.2.320.0070.01416.77
7.2.310.0060.01016.77
7.2.300.0030.01416.49
7.2.290.0140.00316.57
7.2.250.0040.01414.52
7.2.240.0100.01015.11
7.2.230.0140.00315.25
7.2.220.0130.00714.70
7.2.210.0170.00014.80
7.2.200.0100.00714.96
7.2.190.0030.00914.89
7.2.180.0000.01414.89
7.2.170.0140.00414.67
7.2.160.0090.00615.09
7.2.150.0950.00714.84
7.2.140.0910.00714.87
7.2.130.2050.00015.00
7.2.120.0760.00314.70
7.2.110.0690.00315.07
7.2.100.0700.00715.03
7.2.90.0750.00614.75
7.2.80.0770.00715.33
7.2.70.0610.00714.75
7.2.60.0980.01314.95
7.2.50.0780.00315.07
7.2.40.1120.00614.99
7.2.30.1020.00715.03
7.2.20.0730.00315.13
7.2.10.0770.00714.93
7.2.00.0720.00714.90
7.1.330.0030.01015.96
7.1.320.0060.01215.78
7.1.310.0070.01015.64
7.1.300.0030.01015.74
7.1.290.0030.00615.38
7.1.280.0060.00315.83
7.1.270.0590.00314.78
7.1.260.0400.00614.53
7.1.250.0840.00713.60

preferences:
45.19 ms | 401 KiB | 5 Q