3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $x = 123; public function __construct($x) { $this->x = $x; } public function printX($test) { print $test->x; } } $test1 = new Test(123); $test2 = new Test(345); $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.0120.00318.40
8.3.60.0090.00918.43
8.3.50.0160.00616.46
8.3.40.0150.00618.67
8.3.30.0060.01318.54
8.3.20.0040.00420.73
8.3.10.0040.00423.52
8.3.00.0060.00322.57
8.2.190.0040.01116.58
8.2.180.0130.00916.38
8.2.170.0090.01222.96
8.2.160.0070.00722.27
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00019.66
8.2.110.0000.00919.26
8.2.100.0090.00317.70
8.2.90.0040.00421.08
8.2.80.0050.00317.97
8.2.70.0030.00617.80
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0060.00320.61
8.2.30.0040.00419.25
8.2.20.0000.00817.92
8.2.10.0000.00719.25
8.2.00.0050.00318.09
8.1.280.0140.00025.92
8.1.270.0070.00020.37
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00420.61
8.1.230.0070.00418.94
8.1.220.0040.00417.74
8.1.210.0080.00018.82
8.1.200.0100.00017.36
8.1.190.0030.00617.35
8.1.180.0080.00018.10
8.1.170.0050.00318.46
8.1.160.0040.00418.73
8.1.150.0000.00718.84
8.1.140.0070.00020.17
8.1.130.0000.00720.24
8.1.120.0030.00417.28
8.1.110.0030.00517.42
8.1.100.0000.00817.41
8.1.90.0030.00617.27
8.1.80.0040.00417.32
8.1.70.0000.00717.25
8.1.60.0040.00417.57
8.1.50.0040.00417.40
8.1.40.0030.00617.47
8.1.30.0040.00917.61
8.1.20.0080.00017.54
8.1.10.0050.00517.67
8.1.00.0000.00817.45
8.0.300.0040.00419.66
8.0.290.0040.00416.63
8.0.280.0000.00818.38
8.0.270.0030.00517.23
8.0.260.0030.00320.06
8.0.250.0000.00716.85
8.0.240.0030.00316.89
8.0.230.0040.00416.86
8.0.220.0000.00716.84
8.0.210.0030.00516.82
8.0.200.0000.00716.77
8.0.190.0000.00816.88
8.0.180.0000.00816.82
8.0.170.0030.00616.72
8.0.160.0040.00416.84
8.0.150.0000.00716.79
8.0.140.0000.00816.68
8.0.130.0060.00013.23
8.0.120.0030.00616.83
8.0.110.0030.00516.73
8.0.100.0070.00016.69
8.0.90.0000.00716.89
8.0.80.0150.00016.76
8.0.70.0040.00416.82
8.0.60.0020.00516.93
8.0.50.0000.00716.68
8.0.30.0130.00617.16
8.0.20.0130.00616.96
8.0.10.0070.00016.93
8.0.00.0100.01116.78
7.4.330.0000.00515.55
7.4.320.0030.00316.29
7.4.300.0000.00716.48
7.4.290.0000.00716.57
7.4.280.0050.00316.49
7.4.270.0000.00816.51
7.4.260.0030.00316.52
7.4.250.0050.00316.60
7.4.240.0030.00316.46
7.4.230.0040.00416.65
7.4.220.0000.00816.38
7.4.210.0090.00616.55
7.4.200.0030.00316.65
7.4.160.0130.00216.54
7.4.140.0110.00717.86
7.4.130.0150.00316.64
7.4.120.0130.00616.35
7.4.110.0160.00016.55
7.4.100.0090.00916.70
7.4.90.0040.01316.69
7.4.80.0080.01419.39
7.4.70.0110.00816.44
7.4.60.0070.00816.61
7.4.50.0070.01115.94
7.4.40.0070.01016.34
7.4.00.0070.01115.01
7.3.330.0000.00513.23
7.3.320.0050.00013.24
7.3.310.0030.00316.12
7.3.300.0030.00316.19
7.3.290.0070.00016.20
7.3.280.0080.00816.13
7.3.260.0090.00916.37
7.3.230.0110.00816.29
7.3.210.0030.01316.50
7.3.200.0100.00516.52
7.3.190.0090.01216.41
7.3.180.0120.00916.19
7.3.170.0060.01016.28
7.3.160.0060.00916.25
7.3.30.0110.00314.70
7.3.20.1100.00714.79
7.3.10.1160.00714.52
7.3.00.1580.01314.89
7.2.330.0030.01816.78
7.2.320.0030.01516.47
7.2.310.0000.01516.63
7.2.300.0070.01016.59
7.2.290.0070.01016.51
7.2.160.0130.00914.96
7.2.150.1550.00715.18
7.2.140.1170.01315.09
7.2.130.1230.01315.02
7.2.120.1910.00314.88
7.2.110.1130.00714.98
7.2.100.1200.01014.79
7.2.90.1110.00314.96
7.2.80.0960.01015.09
7.2.70.1510.00315.05
7.2.60.1340.00715.19
7.2.50.1200.00315.10
7.2.40.1130.00015.12
7.2.30.1080.01015.11
7.2.20.1370.00015.04
7.2.10.1090.00715.24
7.2.00.1420.00715.12
7.1.270.1250.00313.87
7.1.260.1120.00713.89
7.1.250.1460.00713.85

preferences:
29.4 ms | 401 KiB | 5 Q