3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ( [ false, null, [], '', '0' ] as $value ) { var_dump( str_replace( ' ', "\n", $value ) ); }

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.0100.01018.71
8.4.10.0030.00619.67
8.3.140.0040.01216.35
8.3.130.0030.00618.34
8.3.120.0060.00319.02
8.3.110.0110.00018.44
8.3.100.0090.00016.79
8.3.90.0040.00426.77
8.3.80.0110.00019.36
8.3.70.0040.01116.75
8.3.60.0110.00316.75
8.3.50.0110.00418.04
8.3.40.0120.00318.88
8.3.30.0090.00618.84
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.260.0110.00716.50
8.2.250.0060.00318.13
8.2.240.0090.00916.92
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0060.00318.88
8.2.190.0150.00016.63
8.2.180.0140.00325.92
8.2.170.0070.00718.82
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00426.35
8.2.110.0060.00322.24
8.2.100.0070.00317.78
8.2.90.0000.00817.84
8.2.80.0040.00418.92
8.2.70.0040.00417.38
8.2.60.0050.00317.38
8.2.50.0060.00318.07
8.2.40.0000.00817.97
8.2.30.0070.00017.93
8.2.20.0040.00417.90
8.2.10.0060.00320.94
8.2.00.0030.00319.18
8.1.310.0080.00018.23
8.1.300.0000.00818.24
8.1.290.0090.00030.84
8.1.280.0060.00925.92
8.1.270.0020.00523.99
8.1.260.0050.00528.09
8.1.250.0070.00028.09
8.1.240.0080.00022.13
8.1.230.0050.00520.96
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0080.00317.10
8.1.190.0030.00517.10
8.1.180.0000.00819.18
8.1.170.0000.00818.45
8.1.160.0000.00718.68
8.1.150.0040.00418.71
8.1.140.0050.00218.76
8.1.130.0070.00020.08
8.1.120.0000.00817.33
8.1.110.0040.00417.20
8.1.100.0040.00417.31
8.1.90.0040.00417.21
8.1.80.0070.00417.36
8.1.70.0000.00917.21
8.1.60.0040.00417.50
8.1.50.0050.00317.31
8.1.40.0050.00317.43
8.1.30.0050.00317.48
8.1.20.0050.00317.35
8.1.10.0040.00417.46
8.1.00.0050.00317.27
8.0.300.0040.00420.09
8.0.290.0000.00916.63
8.0.280.0000.00718.25
8.0.270.0030.00317.98
8.0.260.0000.00618.43
8.0.250.0030.00416.77
8.0.240.0000.00716.85
8.0.230.0070.00016.91
8.0.220.0000.00716.84
8.0.210.0030.00316.80
8.0.200.0040.00416.86
8.0.190.0040.00416.81
8.0.180.0050.00216.85
8.0.170.0050.00316.86
8.0.160.0000.00716.86
8.0.150.0040.00416.81
8.0.140.0000.00716.71
8.0.130.0050.00013.21
8.0.120.0050.00316.80
8.0.110.0030.00516.77
8.0.100.0000.00716.79
8.0.90.0040.00416.71
8.0.80.0050.01316.72
8.0.70.0070.00016.89
8.0.60.0030.00416.69
8.0.50.0000.00716.85
8.0.30.0220.00616.75
8.0.20.0090.01316.89
8.0.10.0110.01416.83
8.0.00.0200.00316.94
7.4.330.0030.00315.55
7.4.320.0040.00416.32
7.4.300.0070.00016.45
7.4.290.0030.00616.41
7.4.280.0050.00316.45
7.4.270.0000.00716.48
7.4.260.0050.00013.11
7.4.250.0030.00516.39
7.4.240.0040.00416.36
7.4.230.0030.00316.50
7.4.220.0000.00716.34
7.4.210.0080.00816.44
7.4.200.0040.00416.39
7.4.160.0130.01316.32
7.4.150.0060.01716.34
7.4.140.0190.00816.27
7.4.130.0140.00616.29
7.4.120.0170.00616.32
7.4.110.0170.00616.40
7.4.100.0190.00816.38
7.4.90.0170.00816.50
7.4.80.0120.01616.36
7.4.70.0180.01116.36
7.4.60.0160.00916.25
7.4.50.0120.01516.28
7.4.40.0260.00416.32
7.4.30.0150.00816.51
7.4.20.0220.00616.32
7.4.10.0150.00816.35
7.4.00.0050.01116.45
7.3.330.0070.00016.33
7.3.320.0000.00613.11
7.3.310.0030.00316.26
7.3.300.0000.00716.27
7.3.290.0090.00816.33
7.3.270.0140.00916.22
7.3.260.0130.01316.23
7.3.250.0080.01516.25
7.3.240.0140.01116.26
7.3.230.0170.00316.24
7.3.220.0150.00816.23
7.3.210.0270.00416.31
7.3.200.0300.00316.13
7.3.190.0220.00616.21
7.3.180.0280.00016.22
7.3.170.0250.00616.15
7.3.160.0230.00016.21
7.3.150.0280.00016.21
7.3.140.0200.00516.14
7.3.130.0190.00616.15
7.3.120.0150.01516.29
7.3.110.0110.01516.10
7.3.100.0100.01416.20
7.3.90.0140.01116.40
7.3.80.0160.00816.08
7.3.70.0150.01516.19
7.3.60.0140.01416.25
7.3.50.0190.00616.20
7.3.40.0130.01116.20
7.3.30.0140.01016.35
7.3.20.0300.00316.27
7.3.10.0130.01316.25
7.3.00.0270.00316.32

preferences:
75.36 ms | 403 KiB | 5 Q