3v4l.org

run code in 300+ PHP versions simultaneously
<?php $available_templates = [ '' => 'Placeholder', 404 => '404', 'single' => 'Single Post', ]; $merge = array_merge( [ '' => 'Default template', ], $available_templates ); $replace = array_replace( $available_templates, [ '' => 'Default template', ] ); var_dump( $merge ); var_dump( $replace );

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.0150.00620.47
8.4.10.0080.00318.77
8.3.150.0140.00716.36
8.3.140.0100.00716.35
8.3.130.0030.00618.36
8.3.120.0030.00620.75
8.3.110.0050.00320.94
8.3.100.0030.00724.06
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0110.00416.63
8.3.60.0110.00716.50
8.3.50.0170.00316.34
8.3.40.0120.00318.29
8.3.30.0110.00718.38
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.270.0130.00716.38
8.2.260.0060.00317.19
8.2.250.0000.00816.69
8.2.240.0060.00317.35
8.2.230.0030.00722.58
8.2.220.0040.00737.54
8.2.210.0060.00326.77
8.2.200.0060.00316.50
8.2.190.0120.00316.58
8.2.180.0080.00825.92
8.2.170.0070.00718.79
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.19
8.2.110.0000.01021.00
8.2.100.0080.00417.72
8.2.90.0030.00619.63
8.2.80.0000.00817.97
8.2.70.0040.00817.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0060.00318.16
8.2.30.0000.00717.91
8.2.20.0070.00018.01
8.2.10.0000.00719.25
8.2.00.0040.00419.25
8.1.310.0040.00418.49
8.1.300.0130.00617.85
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0000.00824.02
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.91
8.1.230.0090.00320.92
8.1.220.0000.00817.74
8.1.210.0030.00718.85
8.1.200.0040.00417.22
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0000.00818.45
8.1.160.0000.00718.77
8.1.150.0000.00718.88
8.1.140.0040.00418.83
8.1.130.0070.00020.19
8.1.120.0040.00417.38
8.1.110.0040.00417.39
8.1.100.0000.00717.36
8.1.90.0000.00817.41
8.1.80.0000.00917.38
8.1.70.0030.00317.30
8.1.60.0000.00817.44
8.1.50.0050.00317.43
8.1.40.0110.00017.38
8.1.30.0060.00317.51
8.1.20.0000.00817.56
8.1.10.0000.00817.39
8.1.00.0000.00717.43
8.0.300.0070.00019.61
8.0.290.0040.00416.75
8.0.280.0000.00820.06
8.0.270.0030.00317.95
8.0.260.0050.00318.57
8.0.250.0030.00316.90
8.0.240.0000.00816.89
8.0.230.0070.00016.94
8.0.220.0030.00316.73
8.0.210.0020.00516.83
8.0.200.0030.00316.88
8.0.190.0030.00616.78
8.0.180.0000.00816.77
8.0.170.0030.00616.83
8.0.160.0000.00816.85
8.0.150.0030.00316.78
8.0.140.0000.00916.77
8.0.130.0090.00013.24
8.0.120.0000.00816.71
8.0.110.0070.00016.89
8.0.100.0050.00216.68
8.0.90.0080.00016.86
8.0.80.0040.00816.89
8.0.70.0070.00416.86
8.0.60.0050.00616.71
8.0.50.0040.00416.85
8.0.30.0000.01116.72
8.0.20.0110.00016.88
8.0.10.0000.01016.75
8.0.00.0000.01016.96
7.4.330.0060.00015.55
7.4.320.0030.00316.47
7.4.300.0000.00616.50
7.4.290.0000.00716.41
7.4.280.0030.00816.55
7.4.270.0030.00316.35
7.4.260.0050.00013.23
7.4.250.0000.00716.55
7.4.240.0070.00016.45
7.4.230.0000.00716.52
7.4.220.0030.00616.43
7.4.210.0050.00516.52
7.4.200.0110.00016.32
7.4.190.0030.00716.67
7.4.180.0100.00016.40
7.4.160.0050.00516.64
7.4.150.0100.00016.45
7.4.140.0030.00616.48
7.4.130.0100.00016.31
7.4.120.0100.00016.53
7.4.110.0030.00616.18
7.4.100.0070.00316.28
7.4.90.0100.00016.51
7.4.80.0070.00416.42
7.4.70.0020.00916.25
7.4.60.0090.00316.25
7.4.50.0040.00716.19
7.4.40.0060.00516.23
7.4.30.0070.00416.32
7.4.20.0000.00916.37
7.4.10.0030.00616.25
7.4.00.0050.00516.50
7.3.330.0070.00016.20
7.3.320.0030.00312.98
7.3.310.0030.00315.96
7.3.300.0070.00016.20
7.3.290.0020.00715.99
7.3.280.0060.00316.17
7.3.270.0050.00516.15
7.3.260.0030.00616.04
7.3.250.0060.00316.15
7.3.240.0060.00315.99
7.3.230.0030.00616.16
7.3.220.0070.00215.97
7.3.210.0090.00015.87
7.3.200.0060.00316.06
7.3.190.0060.00315.97
7.3.180.0090.00016.11
7.3.170.0020.00715.99
7.3.160.0030.00616.11
7.3.150.0030.00616.11
7.3.140.0090.00016.07
7.3.130.0000.01016.11
7.3.120.0070.00315.95
7.3.110.0070.00216.00
7.3.100.0050.00515.99
7.3.90.0000.00916.31
7.3.80.0080.00016.02
7.3.70.0050.00516.02
7.3.60.0050.00316.02
7.3.50.0090.00016.16
7.3.40.0000.00816.14
7.3.30.0080.00016.28
7.3.20.0000.00916.19
7.3.10.0050.00516.25
7.3.00.0030.00616.13

preferences:
104.5 ms | 403 KiB | 5 Q