3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test(ArrayAccess $errors) { $errors[] = 'This is an error!'; } } $foo->test($error, $errors = array()); var_dump($errors);

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.00916.50
8.3.50.0100.00716.01
8.3.40.0140.00718.78
8.3.30.0040.01118.84
8.3.20.0080.00020.14
8.3.10.0070.00021.90
8.3.00.0000.00817.64
8.2.180.0100.00718.54
8.2.170.0110.01122.96
8.2.160.0100.00320.33
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00417.63
8.2.110.0050.00519.30
8.2.100.0080.00417.91
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0080.00017.80
8.2.50.0030.00618.10
8.2.40.0040.00421.25
8.2.30.0030.00320.72
8.2.20.0080.00017.59
8.2.10.0000.00819.82
8.2.00.0000.00817.87
8.1.280.0180.00325.92
8.1.270.0080.00023.97
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00620.87
8.1.230.0090.00317.64
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0030.00520.34
8.1.160.0040.00421.83
8.1.150.0030.00518.69
8.1.140.0030.00519.46
8.1.130.0000.00717.57
8.1.120.0040.00417.26
8.1.110.0000.00717.25
8.1.100.0000.00817.35
8.1.90.0040.00417.36
8.1.80.0070.00317.21
8.1.70.0050.00217.33
8.1.60.0070.00017.45
8.1.50.0000.00917.42
8.1.40.0000.00917.33
8.1.30.0060.00317.66
8.1.20.0070.00717.44
8.1.10.0000.00917.48
8.1.00.0040.00417.47
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0080.00018.39
8.0.270.0030.00317.19
8.0.260.0030.00317.20
8.0.250.0000.00716.95
8.0.240.0030.00516.98
8.0.230.0070.00316.96
8.0.220.0070.00016.78
8.0.210.0070.00016.77
8.0.200.0030.00316.85
8.0.190.0030.00516.87
8.0.180.0030.00516.92
8.0.170.0080.00016.91
8.0.160.0040.00416.89
8.0.150.0040.00416.81
8.0.140.0070.00016.91
8.0.130.0050.00013.37
8.0.120.0000.00716.79
8.0.110.0030.00516.78
8.0.100.0000.00816.89
8.0.90.0080.00016.75
8.0.80.0090.01216.92
8.0.70.0000.00716.77
8.0.60.0000.00816.80
8.0.50.0000.00716.91
8.0.30.0130.00616.94
8.0.20.0140.00517.40
8.0.10.0040.00416.84
8.0.00.0090.00916.62
7.4.330.0050.00015.08
7.4.320.0000.00616.36
7.4.300.0030.00316.55
7.4.290.0000.00716.53
7.4.280.0030.00616.58
7.4.270.0030.00316.47
7.4.260.0000.00716.53
7.4.250.0000.00816.51
7.4.240.0070.00016.44
7.4.230.0030.00316.39
7.4.220.0160.01016.30
7.4.210.0070.00716.59
7.4.200.0030.00316.35
7.4.160.0030.01216.64
7.4.150.0120.00617.40
7.4.140.0160.00817.86
7.4.130.0130.00716.41
7.4.120.0120.00516.56
7.4.110.0030.01516.41
7.4.100.0070.01016.59
7.4.90.0110.01216.34
7.4.80.0100.00719.39
7.4.70.0120.00916.36
7.4.60.0160.00016.50
7.4.50.0000.00516.38
7.4.40.0030.01416.41
7.4.30.0110.01116.32
7.4.10.0120.00416.29
7.4.00.0070.01215.40
7.3.330.0050.00013.04
7.3.320.0030.00313.21
7.3.310.0000.00716.28
7.3.300.0000.00716.21
7.3.290.0080.00816.32
7.3.280.0110.00716.33
7.3.270.0190.00017.40
7.3.260.0140.00316.54
7.3.240.0060.01316.36
7.3.230.0040.01216.40
7.3.210.0120.00616.52
7.3.200.0040.01616.55
7.3.190.0000.01616.50
7.3.180.0070.01016.24
7.3.170.0100.01316.43
7.3.160.0080.00816.45
7.3.130.0060.01216.30
7.3.120.0080.01015.55
7.3.110.0040.01115.43
7.3.100.0070.01015.60
7.3.90.0050.01215.60
7.3.80.0000.01115.46
7.3.70.0050.01015.43
7.3.60.0050.01115.46
7.3.50.0070.01115.60
7.3.40.0080.00815.56
7.3.30.0060.00815.56
7.3.20.0030.01017.37
7.3.10.0000.01217.31
7.3.00.0090.00617.37
7.2.330.0060.01116.59
7.2.320.0100.00716.57
7.2.310.0100.00716.29
7.2.300.0120.00316.20
7.2.290.0140.00416.60
7.2.260.0030.01716.61
7.2.250.0050.01415.73
7.2.240.0040.01115.75
7.2.230.0020.01415.69
7.2.220.0080.00815.54
7.2.210.0050.00715.40
7.2.200.0050.01115.70
7.2.190.0030.01215.77
7.2.180.0030.01015.72
7.2.170.0060.00815.62
7.2.160.0030.01316.39
7.2.150.0060.01018.37
7.2.140.0040.01118.13
7.2.130.0040.00718.13
7.2.120.0000.01218.34
7.2.110.0000.01018.19
7.2.100.0030.00718.26
7.2.90.0070.01118.18
7.2.80.0060.00918.21
7.2.70.0090.00318.13
7.2.60.0250.00017.38
7.2.50.0100.00318.30
7.2.40.0000.01418.34
7.2.30.0060.01218.31
7.2.20.0040.00818.23
7.2.10.0110.00018.30
7.2.00.0100.00318.54
7.1.330.0110.00516.26
7.1.320.0140.00316.27
7.1.310.0050.00916.35
7.1.300.0090.00716.27
7.1.290.0070.00516.34
7.1.280.0020.00916.41
7.1.270.0030.00916.31
7.1.260.0040.00916.23
7.1.250.0030.01217.12
7.1.240.0000.01017.17
7.1.230.0070.00717.25
7.1.220.0070.01017.24
7.1.210.0110.00017.18
7.1.200.0030.01116.29
7.1.190.0030.01417.09
7.1.180.0080.00817.17
7.1.170.0040.01117.15
7.1.160.0090.00617.09
7.1.150.0030.01217.13
7.1.140.0100.00017.19
7.1.130.0070.01117.20
7.1.120.0000.01517.19
7.1.110.0080.00417.05
7.1.100.0050.00917.71
7.1.90.0060.00917.13
7.1.80.0070.00317.16
7.1.70.0060.00916.91
7.1.60.0060.00818.32
7.1.50.0080.00416.97
7.1.40.0070.00717.08
7.1.30.0090.00917.33
7.1.20.0130.00617.10
7.1.10.0070.01017.01
7.1.00.0030.04319.85
7.0.330.0110.00016.95
7.0.320.0070.00716.93
7.0.310.0070.01116.90
7.0.300.0040.00716.88
7.0.290.0040.01416.76
7.0.280.0030.01016.84
7.0.270.0060.00316.82
7.0.260.0000.01416.94
7.0.250.0060.00616.98
7.0.240.0070.00716.86
7.0.230.0090.00617.13
7.0.220.0110.00016.71
7.0.210.0030.00916.76
7.0.200.0030.00516.88
7.0.190.0030.00616.80
7.0.180.0000.01217.04
7.0.170.0070.00716.86
7.0.160.0120.00416.79
7.0.150.0090.00916.77
7.0.140.0060.00916.79
7.0.130.0030.01216.93
7.0.120.0060.00916.92
7.0.110.0030.01316.94
7.0.100.0070.01017.05
7.0.90.0040.00816.82
7.0.80.0030.01016.98
7.0.70.0030.00816.89
7.0.60.0080.04618.37
7.0.50.0080.04317.32
7.0.40.0050.04817.40
7.0.30.0180.03817.60
7.0.20.0120.02117.50
7.0.10.0050.04617.53
7.0.00.0030.03017.42
5.6.400.0100.00715.69
5.6.390.0070.00715.55
5.6.380.0050.00515.90
5.6.370.0030.01015.76
5.6.360.0000.01215.86
5.6.350.0030.00915.87
5.6.340.0030.00715.85
5.6.330.0070.00715.48
5.6.320.0040.00815.80
5.6.310.0090.00615.84
5.6.300.0140.00415.44
5.6.290.0030.00715.82
5.6.280.0050.02118.21
5.6.270.0030.01315.44
5.6.260.0040.01215.78
5.6.250.0000.01615.50
5.6.240.0090.00315.63
5.6.230.0030.01015.58
5.6.220.0000.00915.72
5.6.210.0050.02318.21
5.6.200.0130.03716.84
5.6.190.0040.03718.23
5.6.180.0230.02518.04
5.6.170.0120.02718.11
5.6.160.0080.04018.09
5.6.150.0070.04316.81
5.6.140.0060.02317.13
5.6.130.0000.02916.89
5.6.120.0050.04018.30
5.6.110.0060.04618.47
5.6.100.0050.04518.39
5.6.90.0100.03718.36
5.6.80.0050.02518.19
5.6.70.0070.00715.86
5.6.60.0000.01415.84
5.6.50.0090.00315.74
5.6.40.0030.01015.54
5.6.30.0030.01015.74
5.6.20.0000.01415.61
5.6.10.0100.00315.62
5.6.00.0040.01015.73
5.5.380.0030.01015.50
5.5.370.0050.00515.61
5.5.360.0060.00915.79
5.5.350.0030.02218.07
5.5.340.0120.03816.85
5.5.330.0040.02918.07
5.5.320.1860.02018.02
5.5.310.0200.03518.05
5.5.300.0040.02116.86
5.5.290.0050.02516.81
5.5.280.0060.04818.21
5.5.270.0110.04118.31
5.5.260.0020.02718.28
5.5.250.0090.04518.16
5.5.240.0050.04217.95
5.5.230.0000.01315.73
5.5.220.0030.01015.49
5.5.210.0060.00615.55
5.5.200.0070.00715.64
5.5.190.0040.01115.55
5.5.180.0030.01015.53
5.5.170.0080.00415.56
5.5.160.0070.00715.60
5.5.150.0000.01115.65
5.5.140.0030.01015.68
5.5.130.0040.01115.46
5.5.120.0090.00615.54
5.5.110.0070.01015.63
5.5.100.0070.00715.46
5.5.90.0040.01215.59
5.5.80.0080.00815.42
5.5.70.0070.00715.69
5.5.60.0000.01315.62
5.5.50.0060.00915.57
5.5.40.0000.01415.41
5.5.30.0030.01315.71
5.5.20.0070.01315.53
5.5.10.0070.00815.47
5.5.00.0070.01015.64
5.4.450.0300.03316.43
5.4.440.0300.02816.46
5.4.430.0280.02816.41
5.4.420.0100.03416.41
5.4.410.0130.03316.24
5.4.400.0280.02916.22
5.4.390.0120.02816.22
5.4.380.0050.03016.16
5.4.370.0200.03016.24
5.4.360.0280.02816.25
5.4.350.0250.03016.21
5.4.340.0100.02716.21
5.4.330.0000.01013.29
5.4.320.0120.03616.06
5.4.310.0150.03316.14
5.4.300.0120.03016.07
5.4.290.0130.02516.13
5.4.280.0190.02516.06
5.4.270.0150.02716.25
5.4.260.0200.02216.25
5.4.250.0090.03116.25
5.4.240.0080.03316.07
5.4.230.0150.03116.16
5.4.220.0200.02416.05
5.4.210.0180.02516.21
5.4.200.0100.03016.21
5.4.190.0120.03316.21
5.4.180.0130.03016.24
5.4.170.0100.03216.30
5.4.160.0050.03716.24
5.4.150.0130.02916.24
5.4.140.0130.02614.91
5.4.130.0190.02314.85
5.4.120.0120.02814.78
5.4.110.0170.03814.90
5.4.100.0180.03614.91
5.4.90.0170.03914.94
5.4.80.0130.02714.85
5.4.70.0130.02514.95
5.4.60.0130.02714.92
5.4.50.0140.02414.76
5.4.40.0100.02814.92
5.4.30.0100.02814.75
5.4.20.0100.03214.95
5.4.10.0130.02514.93
5.4.00.0100.03114.51

preferences:
50.44 ms | 400 KiB | 5 Q