3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'time'; $b = 'more'; $array = array( $a, $b ); var_dump($array); var_dump($array[1]); echo PHP_EOL; $array = compact( 'a', 'b' ); var_dump($array); var_dump($array[1]);

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.4.20.0120.00919.67
8.4.10.0060.00320.55
8.3.150.0070.00720.75
8.3.140.0080.00016.49
8.3.130.0000.00918.59
8.3.120.0040.00418.73
8.3.110.0040.00420.94
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0030.00616.63
8.3.70.0180.00316.63
8.3.60.0070.00718.29
8.3.50.0110.01120.05
8.3.40.0070.00719.04
8.3.30.0080.00619.04
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.270.0140.00417.13
8.2.260.0120.00418.82
8.2.250.0080.00018.34
8.2.240.0110.01117.28
8.2.230.0090.00622.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00316.63
8.2.190.0040.01118.30
8.2.180.0110.01125.92
8.2.170.0070.00719.03
8.2.160.0040.01122.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.87
8.2.110.0110.00020.47
8.2.100.0070.00417.97
8.2.90.0080.00017.88
8.2.80.0060.00317.97
8.2.70.0050.00317.75
8.2.60.0050.00317.73
8.2.50.0000.00817.98
8.2.40.0050.00218.22
8.2.30.0070.00018.30
8.2.20.0040.00420.47
8.2.10.0000.00718.16
8.2.00.0030.00619.19
8.1.310.0110.00718.40
8.1.300.0130.00616.07
8.1.290.0090.00018.88
8.1.280.0150.00025.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00020.86
8.1.230.0000.01119.16
8.1.220.0040.00417.78
8.1.210.0070.00418.77
8.1.200.0000.00917.25
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0040.00418.79
8.1.150.0040.00418.53
8.1.140.0000.00717.36
8.1.130.0000.00718.92
8.1.120.0070.00017.36
8.1.110.0060.00317.29
8.1.100.0040.00417.44
8.1.90.0020.00517.49
8.1.80.0030.00617.51
8.1.70.0030.00317.39
8.1.60.0030.00517.52
8.1.50.0040.00417.42
8.1.40.0150.00817.52
8.1.30.0120.00917.54
8.1.20.0190.01017.63
8.1.10.0190.00917.42
8.1.00.0200.00317.46
8.0.300.0040.00418.84
8.0.290.0000.00716.88
8.0.280.0070.00018.44
8.0.270.0000.00818.66
8.0.260.0030.00318.49
8.0.250.0030.00316.98
8.0.240.0030.00316.99
8.0.230.0000.00717.04
8.0.220.0030.00316.98
8.0.210.0000.00816.95
8.0.200.0070.00016.97
8.0.190.0060.00317.00
8.0.180.0000.00716.93
8.0.170.0200.00016.83
8.0.160.0210.00016.87
8.0.150.0190.00316.97
8.0.140.0160.00316.73
8.0.130.0190.00416.71
8.0.120.0100.01016.82
8.0.110.0110.00416.89
8.0.100.0230.00016.77
8.0.90.0070.01116.86
8.0.80.0180.00016.91
8.0.70.0160.00316.73
8.0.60.0160.00316.88
8.0.50.0180.00016.84
8.0.30.0180.00016.92
8.0.20.0120.00816.93
8.0.10.0160.00417.02
7.4.330.0020.00215.55
7.4.320.0060.00016.48
7.4.300.0060.00016.59
7.4.290.0000.00816.55
7.4.280.0000.00716.49
7.4.270.0170.00616.60
7.4.260.0120.00016.22
7.4.250.0070.00816.31
7.4.240.0190.00416.50
7.4.230.0190.00516.43
7.4.220.0110.00416.58
7.4.210.0090.00416.49
7.4.200.0100.00316.21
7.4.190.0150.00216.44
7.4.180.0140.00316.49
7.4.160.0120.00616.52
7.4.150.0140.00416.52
7.4.140.0140.00416.33
7.4.130.0070.00716.51
7.4.120.0080.00416.13
7.4.110.0040.00816.11
7.4.100.0140.00016.29
7.4.90.0130.00016.48
7.4.80.0040.00816.44
7.4.70.0080.00516.47
7.4.60.0060.00616.43
7.4.50.0040.00816.22
7.4.40.0140.00016.25
7.4.30.0080.00416.43
7.4.20.0030.00916.44
7.4.10.0070.00516.52
7.4.00.0090.00316.46

preferences:
69.29 ms | 402 KiB | 5 Q