3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($object) { $object = null; } function bar(&$object) { $object = null; } $o = new stdClass(); var_dump($o); foo($o); var_dump($o); bar($o); var_dump($o);

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.00718.18
8.3.50.0060.01216.52
8.3.40.0140.00018.54
8.3.30.0110.00418.72
8.3.20.0040.00419.15
8.3.10.0050.00320.90
8.3.00.0030.00617.80
8.2.180.0150.00018.66
8.2.170.0090.00622.96
8.2.160.0040.01120.67
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.97
8.2.110.0030.00620.48
8.2.100.0110.00017.78
8.2.90.0040.00417.63
8.2.80.0050.00318.77
8.2.70.0040.00417.80
8.2.60.0030.00517.93
8.2.50.0060.00318.10
8.2.40.0000.00820.89
8.2.30.0000.00719.37
8.2.20.0040.00418.06
8.2.10.0040.00417.93
8.2.00.0040.00419.42
8.1.280.0150.00025.92
8.1.270.0040.01123.97
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00422.07
8.1.230.0030.00920.96
8.1.220.0000.00818.61
8.1.210.0040.00418.77
8.1.200.0030.00517.22
8.1.190.0000.00917.10
8.1.180.0030.00618.10
8.1.170.0080.00018.47
8.1.160.0000.00818.70
8.1.150.0040.00418.89
8.1.140.0020.00517.55
8.1.130.0030.00518.93
8.1.120.0000.00917.42
8.1.110.0040.00417.40
8.1.100.0000.00717.38
8.1.90.0040.00417.36
8.1.80.0000.00817.39
8.1.70.0040.00417.42
8.1.60.0030.00617.59
8.1.50.0040.00417.40
8.1.40.0000.00817.58
8.1.30.0040.00717.72
8.1.20.0040.00417.64
8.1.10.0000.00717.51
8.1.00.0050.00317.55
8.0.300.0070.00018.77
8.0.290.0080.00016.61
8.0.280.0040.00418.30
8.0.270.0000.00716.65
8.0.260.0000.00719.00
8.0.250.0020.00516.79
8.0.240.0040.00416.89
8.0.230.0000.00716.85
8.0.220.0000.00716.72
8.0.210.0030.00316.81
8.0.200.0030.00316.74
8.0.190.0030.00516.91
8.0.180.0080.00016.88
8.0.170.0040.00416.74
8.0.160.0000.00816.88
8.0.150.0030.00316.79
8.0.140.0050.00316.80
8.0.130.0030.00313.26
8.0.120.0000.00716.69
8.0.110.0050.00316.81
8.0.100.0070.00016.63
8.0.90.0000.00716.89
8.0.80.0070.01116.81
8.0.70.0040.00416.89
8.0.60.0000.00716.72
8.0.50.0000.00716.77
8.0.30.0080.00917.18
8.0.20.0080.01217.40
8.0.10.0000.00716.81
8.0.00.0070.01116.73
7.4.330.0040.00015.55
7.4.320.0030.00416.39
7.4.300.0040.00416.51
7.4.290.0030.00316.36
7.4.280.0050.00216.49
7.4.270.0000.00716.61
7.4.260.0000.00916.50
7.4.250.0070.00016.32
7.4.240.0030.00516.55
7.4.230.0000.00716.71
7.4.220.0000.00816.39
7.4.210.0110.00816.52
7.4.200.0030.00316.49
7.4.160.0070.01216.47
7.4.140.0090.01017.86
7.4.130.0070.01416.57
7.4.120.0120.00716.48
7.4.110.0150.00316.63
7.4.100.0070.01116.63
7.4.90.0120.00616.51
7.4.80.0090.00619.39
7.4.70.0200.00316.32
7.4.60.0100.00616.36
7.4.50.0040.01116.64
7.4.40.0090.00916.50
7.4.00.0060.01215.09
7.3.330.0000.00513.10
7.3.320.0030.00413.10
7.3.310.0070.00016.09
7.3.300.0000.00716.20
7.3.290.0040.00416.20
7.3.280.0140.01416.21
7.3.260.0110.00716.31
7.3.240.0100.01016.40
7.3.230.0060.01216.28
7.3.210.0100.01416.25
7.3.200.0130.00416.59
7.3.190.0100.01016.32
7.3.180.0130.00316.57
7.3.170.0070.01316.41
7.3.160.0060.00916.61
7.2.330.0110.00816.64
7.2.320.0100.00716.61
7.2.310.0070.01716.72
7.2.300.0080.00816.73
7.2.290.0120.01216.75
7.2.60.3230.00814.63
7.2.50.2560.00615.01
7.2.40.3850.00815.40
7.2.30.3410.01415.49
7.2.20.3780.01215.42
7.2.10.4380.00614.96
7.2.00.3880.00915.14
7.1.200.0090.00315.89
7.1.170.3380.00813.88
7.1.160.3550.01116.66
7.1.150.3590.01316.89
7.1.140.4410.01016.27
7.1.130.3090.00916.75
7.1.120.3910.01516.82
7.1.110.3900.00916.21
7.1.100.4310.01115.84
7.1.90.5630.00816.12
7.1.80.5280.00516.23
7.1.70.3480.01115.25
7.1.60.4910.01333.28
7.1.50.6150.01132.80
7.1.40.6130.01432.40
7.1.30.6060.01232.69
7.1.20.4660.01532.73
7.1.10.6400.00914.93
7.1.00.5700.01014.79

preferences:
59.19 ms | 401 KiB | 5 Q