3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($x){ $x += array( 'first' => 'a', 'second' => 'y', 'thrid' => 'z' ); echo $x; } test('ori');

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.0130.00918.56
8.3.50.0090.00918.39
8.3.40.0070.00718.70
8.3.30.0110.00718.74
8.3.20.0040.00420.04
8.3.10.0040.00420.61
8.3.00.0050.00321.77
8.2.180.0110.00416.50
8.2.170.0090.00922.96
8.2.160.0100.00322.15
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00021.05
8.2.120.0000.00726.35
8.2.110.0030.00619.08
8.2.100.0000.01217.93
8.2.90.0080.00019.05
8.2.80.0030.00517.97
8.2.70.0130.00017.62
8.2.60.0040.00417.80
8.2.50.0050.00318.09
8.2.40.0040.00420.52
8.2.30.0070.00019.48
8.2.20.0040.00417.79
8.2.10.0000.00718.00
8.2.00.0040.00417.96
8.1.280.0070.00725.92
8.1.270.0120.00622.05
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0100.00021.30
8.1.230.0000.01117.83
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00917.25
8.1.180.0080.00018.10
8.1.170.0000.00918.53
8.1.160.0000.00720.57
8.1.150.0040.00418.82
8.1.140.0080.00019.42
8.1.130.0030.00317.57
8.1.120.0040.00417.42
8.1.110.0040.00417.28
8.1.100.0000.00917.27
8.1.90.0040.00417.35
8.1.80.0030.00517.32
8.1.70.0000.00717.30
8.1.60.0040.00417.59
8.1.50.0030.00517.58
8.1.40.0040.00417.48
8.1.30.0090.00017.58
8.1.20.0040.00417.54
8.1.10.0000.00717.59
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.25
8.0.270.0050.00317.17
8.0.260.0030.00317.19
8.0.250.0030.00616.82
8.0.240.0050.00316.92
8.0.230.0060.00016.89
8.0.220.0000.00816.85
8.0.210.0030.00316.91
8.0.200.0000.00616.93
8.0.190.0070.00016.95
8.0.180.0070.00016.88
8.0.170.0030.00516.88
8.0.160.0070.00016.86
8.0.150.0040.00416.81
8.0.140.0050.00216.79
8.0.130.0030.00313.39
8.0.120.0030.00516.83
8.0.110.0040.00416.91
8.0.100.0040.00416.89
8.0.90.0080.00016.97
8.0.80.0030.01016.88
8.0.70.0040.00416.86
8.0.60.0000.00816.87
8.0.50.0000.00716.84
8.0.30.0070.01216.97
8.0.20.0110.00917.40
8.0.10.0000.00716.79
8.0.00.0100.00716.75
7.4.330.0050.00016.76
7.4.320.0000.00616.52
7.4.300.0050.00216.50
7.4.290.0000.00716.44
7.4.280.0050.00316.50
7.4.270.0030.00316.64
7.4.260.0040.00416.41
7.4.250.0040.00416.59
7.4.240.0040.00416.52
7.4.230.0000.00716.38
7.4.220.0140.00316.64
7.4.210.0040.01016.62
7.4.200.0030.00316.41
7.4.160.0090.00616.53
7.4.150.0040.01417.40
7.4.140.0140.00617.86
7.4.130.0130.00816.56
7.4.120.0090.01216.55
7.4.110.0070.01016.63
7.4.100.0210.00316.30
7.4.90.0120.00616.48
7.4.80.0060.01819.39
7.4.70.0130.00316.63
7.4.60.0060.01216.55
7.4.50.0030.01216.30
7.4.40.0030.01316.47
7.4.30.0140.00816.60
7.4.00.0120.00514.97
7.3.330.0030.00313.13
7.3.320.0060.00013.15
7.3.310.0070.00016.18
7.3.300.0030.00316.16
7.3.290.0030.00316.16
7.3.280.0100.00816.29
7.3.270.0140.00717.40
7.3.260.0120.00616.23
7.3.250.0100.00916.37
7.3.240.0060.01216.33
7.3.230.0170.00716.42
7.3.210.0090.00916.45
7.3.200.0140.00216.47
7.3.190.0140.00316.30
7.3.180.0130.00616.48
7.3.170.0070.01016.37
7.3.160.0070.00816.38
7.3.120.0000.01414.98
7.3.110.0030.01314.70
7.3.100.0060.00914.90
7.3.90.0040.01114.75
7.3.80.0060.00614.86
7.3.70.0060.00614.89
7.3.60.0040.01214.95
7.3.50.0060.00614.74
7.3.40.0030.01014.75
7.3.30.0000.00914.80
7.3.20.0040.00816.42
7.3.10.0000.01216.73
7.3.00.0070.00716.40
7.2.330.0070.01016.63
7.2.320.0100.00716.44
7.2.310.0130.00316.65
7.2.300.0060.01016.24
7.2.290.0080.00816.57
7.2.250.0060.01314.70
7.2.240.0030.01614.70
7.2.230.0000.01214.80
7.2.220.0030.00715.07
7.2.210.0060.00614.79
7.2.200.0090.00614.89
7.2.190.0030.00714.75
7.2.180.0030.01014.73
7.2.170.0090.00614.98
7.2.60.0110.00416.79
7.2.00.0000.01418.99
7.1.330.0040.01115.82
7.1.320.0060.00315.77
7.1.310.0030.00715.70
7.1.300.0030.00715.76
7.1.290.0090.00615.55
7.1.280.0090.00015.46
7.1.270.0100.00015.37
7.1.260.0030.01215.48
7.1.200.0080.00815.76
7.1.100.0000.01118.24
7.1.70.0000.00817.16
7.1.60.0090.01519.19
7.1.50.0150.00616.86
7.1.00.0000.08022.36
7.0.200.0220.00914.98
7.0.60.0070.03321.84
7.0.50.0100.03717.86
7.0.40.0230.06720.05
7.0.30.0300.07020.06
7.0.20.0270.04320.24
7.0.10.0100.07720.15
7.0.00.0170.07320.21
5.6.280.0000.03321.07
5.6.210.0100.07320.51
5.6.200.0100.06318.19
5.6.190.0130.04720.39
5.6.180.0300.08020.39
5.6.170.0200.07720.48
5.6.160.0100.07320.52
5.6.150.0100.07718.25
5.6.140.0170.07318.12
5.6.130.0070.05318.18
5.6.120.0070.08320.90
5.6.110.0130.08020.99
5.6.100.0070.07021.03
5.6.90.0100.03320.99
5.6.80.0130.07020.36
5.5.350.0370.07020.42
5.5.340.0030.08018.11
5.5.330.0100.07720.37
5.5.320.0400.04720.34
5.5.310.0170.08720.34
5.5.300.0030.06018.07
5.5.290.0030.06017.95
5.5.280.0130.05720.77
5.5.270.0130.08320.79
5.5.260.0100.07320.84
5.5.250.0030.04020.69
5.5.240.0000.08320.13

preferences:
68.97 ms | 400 KiB | 5 Q