3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $t = "yolo"; } $f = new Foo(); $f = (array) $f; var_dump(array_pop($f)); $s = new class { private $t = "my name"; }; $v = (array)$s; var_dump(array_pop($v));

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.0140.00018.06
8.3.50.0140.00717.92
8.3.40.0120.00318.50
8.3.30.0030.01018.33
8.3.20.0000.00920.17
8.3.10.0050.00321.90
8.3.00.0000.00721.91
8.2.180.0090.01218.29
8.2.170.0130.00922.96
8.2.160.0100.00319.41
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00422.20
8.2.120.0060.00326.35
8.2.110.0070.00322.29
8.2.100.0110.00018.09
8.2.90.0000.00819.88
8.2.80.0040.00417.97
8.2.70.0030.00517.93
8.2.60.0030.00518.03
8.2.50.0040.00418.10
8.2.40.0050.00322.37
8.2.30.0050.00320.95
8.2.20.0000.00718.06
8.2.10.0040.00418.24
8.2.00.0050.00318.14
8.1.280.0140.00725.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.01
8.1.230.0080.00319.15
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00616.99
8.1.180.0000.00818.10
8.1.170.0030.00622.07
8.1.160.0040.00418.88
8.1.150.0000.00920.09
8.1.140.0050.00319.60
8.1.130.0000.00618.96
8.1.120.0030.00317.36
8.1.110.0000.00717.35
8.1.100.0040.00417.49
8.1.90.0020.00517.35
8.1.80.0040.00417.41
8.1.70.0000.00717.42
8.1.60.0090.00017.56
8.1.50.0080.00017.54
8.1.40.0000.00917.45
8.1.30.0000.00817.54
8.1.20.0000.00817.54
8.1.10.0000.00917.57
8.1.00.0040.00417.47
8.0.300.0040.00419.57
8.0.290.0030.00616.63
8.0.280.0030.00318.56
8.0.270.0030.00317.26
8.0.260.0000.00717.27
8.0.250.0030.00316.96
8.0.240.0040.00716.98
8.0.230.0030.00316.93
8.0.220.0030.00316.85
8.0.210.0030.00316.75
8.0.200.0070.00016.90
8.0.190.0050.00316.93
8.0.180.0070.00016.89
8.0.170.0070.00016.93
8.0.160.0070.00016.84
8.0.150.0000.00816.83
8.0.140.0030.00316.75
8.0.130.0020.00513.35
8.0.120.0040.00416.78
8.0.110.0080.00016.82
8.0.100.0050.00316.92
8.0.90.0070.00016.88
8.0.80.0060.01016.88
8.0.70.0000.00716.77
8.0.60.0000.00716.95
8.0.50.0080.00016.75
8.0.30.0110.00917.18
8.0.20.0110.00917.40
8.0.10.0000.00716.82
8.0.00.0090.00916.73
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0030.00316.64
7.4.290.0040.00416.41
7.4.280.0070.00016.62
7.4.270.0000.00716.52
7.4.260.0070.00416.36
7.4.250.0000.00716.56
7.4.240.0070.00016.52
7.4.230.0000.00716.30
7.4.220.0100.01316.57
7.4.210.0100.00716.46
7.4.200.0030.00316.65
7.4.160.0130.00616.46
7.4.150.0030.01617.40
7.4.140.0120.00917.86
7.4.130.0130.01016.51
7.4.120.0140.00616.43
7.4.110.0130.00316.50
7.4.100.0150.00016.50
7.4.90.0070.01616.36
7.4.80.0080.01119.39
7.4.70.0130.00316.56
7.4.60.0070.01016.57
7.4.50.0070.00716.50
7.4.40.0130.00316.66
7.4.30.0000.02016.25
7.4.00.0060.00915.08
7.3.330.0050.00013.32
7.3.320.0000.00513.27
7.3.310.0000.00716.23
7.3.300.0030.00316.19
7.3.290.0080.00716.29
7.3.280.0110.00816.26
7.3.270.0140.00317.40
7.3.260.0100.01116.30
7.3.250.0100.00916.46
7.3.240.0120.00516.32
7.3.230.0090.00916.41
7.3.210.0140.00316.29
7.3.200.0030.01316.20
7.3.190.0090.00916.31
7.3.180.0130.00316.40
7.3.170.0130.01016.31
7.3.160.0100.00716.41
7.2.330.0030.01416.66
7.2.320.0100.00716.39
7.2.310.0140.00716.66
7.2.300.0120.00916.60
7.2.290.0090.00616.58
7.2.80.0030.00916.45
7.2.60.0090.00617.00
7.2.00.0000.01719.54
7.1.200.0030.00915.70
7.1.100.0030.00818.17
7.1.70.0030.00517.10
7.1.60.0060.00817.14
7.1.50.0120.00616.90
7.1.30.7030.02032.47
7.1.20.7030.01032.54
7.1.11.0300.01314.46
7.1.00.4670.00714.71
7.0.200.0030.00616.39
7.0.170.7270.01314.17
7.0.160.8930.01014.22
7.0.150.6930.00314.39
7.0.140.5870.01014.29
7.0.130.5600.01014.48
7.0.120.4500.01014.58
7.0.110.5900.01714.36
7.0.100.4630.01314.45
7.0.90.3930.00714.27
7.0.80.4130.01314.40
7.0.70.0330.01014.29
7.0.60.3830.01714.26
7.0.50.0070.01314.14
7.0.40.1230.01314.48
7.0.30.0000.02014.44
7.0.20.0100.01014.43
7.0.10.4430.00714.25
7.0.00.4930.00714.36

preferences:
31.55 ms | 400 KiB | 5 Q