3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar($arg1, $arg2) { echo $arg1 . '-' . $arg2; } } $a = array(new foo, 'bar'); $a(...['foo', 'bar']);

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.70.0090.00916.58
8.3.60.0030.01018.19
8.3.50.0110.00622.74
8.3.40.0090.00618.70
8.3.30.0000.01419.10
8.3.20.0040.00420.21
8.3.10.0040.00423.57
8.3.00.0080.00019.07
8.2.180.0160.00616.50
8.2.170.0150.00322.96
8.2.160.0060.00920.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.15
8.2.110.0100.00519.20
8.2.100.0040.00817.72
8.2.90.0000.00817.84
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0040.00419.85
8.2.30.0040.00418.11
8.2.20.0080.00017.70
8.2.10.0000.00718.05
8.2.00.0000.00717.66
8.1.280.0130.00725.92
8.1.270.0050.00323.70
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0050.00522.52
8.1.230.0080.00320.79
8.1.220.0030.00617.76
8.1.210.0080.00019.04
8.1.200.0030.00717.35
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0050.00718.51
8.1.160.0070.00021.91
8.1.150.0040.00418.84
8.1.140.0000.00717.34
8.1.130.0070.00017.66
8.1.120.0040.00417.44
8.1.110.0050.00317.45
8.1.100.0040.00417.34
8.1.90.0000.00717.42
8.1.80.0050.00317.48
8.1.70.0070.00017.32
8.1.60.0000.00817.55
8.1.50.0040.00417.45
8.1.40.0060.00317.52
8.1.30.0060.00317.54
8.1.20.0030.00617.68
8.1.10.0030.00517.59
8.1.00.0040.00717.45
8.0.300.0080.00019.98
8.0.290.0000.00716.75
8.0.280.0000.00718.48
8.0.270.0050.00317.35
8.0.260.0030.00317.15
8.0.250.0030.00316.96
8.0.240.0000.00716.98
8.0.230.0030.00316.81
8.0.220.0000.00716.89
8.0.210.0000.00716.89
8.0.200.0000.00616.93
8.0.190.0040.00416.98
8.0.180.0070.00016.91
8.0.170.0080.00016.87
8.0.160.0060.00316.86
8.0.150.0070.00416.80
8.0.140.0040.00416.84
8.0.130.0050.00013.29
8.0.120.0000.00716.86
8.0.110.0050.00216.93
8.0.100.0000.00816.89
8.0.90.0070.00016.92
8.0.80.0070.01016.86
8.0.70.0040.00416.80
8.0.60.0070.00016.91
8.0.50.0000.00816.77
8.0.30.0150.00616.87
8.0.20.0130.00817.40
8.0.10.0040.00416.87
8.0.00.0150.00316.81
7.4.330.0050.00015.00
7.4.320.0000.00616.61
7.4.300.0000.00616.40
7.4.290.0040.00416.61
7.4.280.0040.00416.59
7.4.270.0040.00416.40
7.4.260.0040.00416.48
7.4.250.0040.00416.52
7.4.240.0030.00416.55
7.4.230.0070.00016.41
7.4.220.0110.00616.37
7.4.210.0100.00316.64
7.4.200.0030.00616.34
7.4.160.0040.01216.58
7.4.150.0090.01517.40
7.4.140.0080.01117.86
7.4.130.0070.00916.56
7.4.120.0070.00916.45
7.4.110.0000.01716.47
7.4.100.0100.00716.55
7.4.90.0150.00316.48
7.4.80.0080.00819.39
7.4.70.0100.01016.62
7.4.60.0060.01016.38
7.4.50.0000.00516.18
7.4.40.0100.00716.34
7.4.30.0060.01016.62
7.4.00.0030.01014.91
7.3.330.0060.00013.08
7.3.320.0020.00213.31
7.3.310.0030.00316.25
7.3.300.0070.00016.10
7.3.290.0130.00316.31
7.3.280.0090.00816.29
7.3.270.0080.00817.40
7.3.260.0110.00616.53
7.3.250.0110.00516.41
7.3.240.0080.00816.40
7.3.230.0060.01616.39
7.3.210.0140.00316.40
7.3.200.0030.01319.39
7.3.190.0120.00616.17
7.3.180.0060.01616.34
7.3.170.0060.01016.32
7.3.160.0030.01316.57
7.2.330.0050.01516.58
7.2.320.0030.01416.73
7.2.310.0060.01216.61
7.2.300.0100.00516.46
7.2.290.0100.00716.76
7.2.00.0030.01019.21
7.1.100.0110.00718.17
7.1.70.0070.00316.79
7.1.60.0170.00719.40
7.1.50.0090.00916.75
7.1.00.0100.07022.33
7.0.200.0280.00414.60
7.0.140.0030.07322.00
7.0.120.0000.05322.16
7.0.110.0000.07722.04
7.0.100.0000.07722.05
7.0.90.0070.06022.07
7.0.80.0070.05722.13
7.0.70.0030.07321.97
7.0.60.0000.07722.08
7.0.50.0000.05322.03
7.0.40.0030.05322.03
7.0.30.0100.06322.20
7.0.20.0030.06022.16
7.0.10.0100.06722.05
7.0.00.0070.06322.03
5.6.280.0030.07320.78
5.6.260.0030.07021.06
5.6.250.0030.06720.87
5.6.240.0030.06321.09
5.6.230.0030.06720.88
5.6.220.0000.07720.83
5.6.210.0070.07020.95
5.6.200.0030.07020.75
5.6.190.0070.05720.83
5.6.180.0030.04720.75
5.6.170.0070.05321.05
5.6.160.0100.05720.83
5.6.150.0130.06720.75
5.6.140.0000.06020.92
5.6.130.0000.07320.80
5.6.120.0000.07320.75
5.6.110.0070.07320.91
5.6.100.0030.08021.03
5.6.90.0030.07320.83
5.6.80.0030.06720.39
5.6.70.0100.06320.43
5.6.60.0030.07320.45
5.6.50.0000.06320.21
5.6.40.0000.05720.30
5.6.30.0070.06720.30
5.6.20.0000.07020.31
5.6.10.0130.05720.11
5.6.00.0030.07020.43
5.5.380.0030.04717.72
5.5.370.0030.04717.70
5.5.360.0000.07317.51
5.5.350.0030.05317.52
5.5.340.0000.06717.83
5.5.330.0070.06717.84
5.5.320.0070.05018.10
5.5.310.0000.07318.12
5.5.300.0070.07318.10
5.5.290.0030.07317.91
5.5.280.0000.05718.05
5.5.270.0100.06317.92
5.5.260.0070.06018.04
5.5.250.0070.07017.95
5.5.240.0070.04717.31
5.5.230.0030.07017.31
5.5.220.0030.06317.29
5.5.210.0030.07017.47
5.5.200.0030.07017.28
5.5.190.0030.05717.58
5.5.180.0030.07317.26
5.5.160.0030.06317.47
5.5.150.0030.06717.58
5.5.140.0030.06717.44
5.5.130.0030.07017.46
5.5.120.0000.05717.44
5.5.110.0030.06717.25
5.5.100.0030.05717.53
5.5.90.0000.06717.18
5.5.80.0070.05717.34
5.5.70.0100.05317.50
5.5.60.0030.04317.38
5.5.50.0000.05317.37
5.5.40.0000.07017.34
5.5.30.0070.06317.16
5.5.20.0030.06717.33
5.5.10.0030.07017.34
5.5.00.0070.06717.48
5.4.450.0100.06319.33
5.4.440.0030.06019.50
5.4.430.0030.06019.49
5.4.420.0000.05319.46
5.4.410.0030.07019.43
5.4.400.0000.07019.00
5.4.390.0000.07319.33
5.4.380.0000.04719.24
5.4.370.0070.06319.31
5.4.360.0070.05719.24
5.4.350.0070.06319.01
5.4.340.0030.07019.24
5.4.320.0000.07319.00
5.4.310.0000.06019.02
5.4.300.0070.06718.99
5.4.290.0000.05319.00
5.4.280.0070.06319.09
5.4.270.0100.06019.00
5.4.260.0000.07019.01
5.4.250.0030.05719.17
5.4.240.0030.06719.00
5.4.230.0070.06318.96
5.4.220.0000.05018.99
5.4.210.0070.06319.13
5.4.200.0000.07019.13
5.4.190.0030.05718.99
5.4.180.0070.06019.18
5.4.170.0000.06719.20
5.4.160.0100.06019.00
5.4.150.0070.06719.11
5.4.140.0000.05716.60
5.4.130.0030.04016.61
5.4.120.0000.06716.38
5.4.110.0000.07016.54
5.4.100.0030.05316.70
5.4.90.0070.05716.51
5.4.80.0070.05016.29
5.4.70.0070.05716.53
5.4.60.0000.06716.54
5.4.50.0030.05316.32
5.4.40.0070.06016.38
5.4.30.0000.06016.43
5.4.20.0030.04316.37
5.4.10.0000.03016.24
5.4.00.0000.04715.95
5.3.290.0000.06714.63
5.3.280.0030.06314.55
5.3.270.0030.05014.69
5.3.260.0030.05014.71
5.3.250.0030.06714.75
5.3.240.0030.06314.64
5.3.230.0000.06014.84
5.3.220.0030.06714.70
5.3.210.0070.06314.64
5.3.200.0070.06014.70
5.3.190.0030.06714.42
5.3.180.0070.06314.65
5.3.170.0030.06714.70
5.3.160.0030.06314.52
5.3.150.0070.06314.79
5.3.140.0000.07314.57
5.3.130.0070.06314.77
5.3.120.0030.05314.77
5.3.110.0030.03714.58
5.3.100.0070.06014.01
5.3.90.0000.05314.02
5.3.80.0000.04314.03
5.3.70.0070.02313.98
5.3.60.0000.03014.02
5.3.50.0000.05313.96
5.3.40.0030.06314.02
5.3.30.0030.06313.91
5.3.20.0100.05313.83
5.3.10.0000.05713.75
5.3.00.0100.06013.70
5.2.170.0000.02311.01
5.2.160.0000.04311.16
5.2.150.0000.04711.38
5.2.140.0030.04311.15
5.2.130.0000.04311.09
5.2.120.0030.05011.05
5.2.110.0000.04311.12
5.2.100.0070.05011.24
5.2.90.0000.05311.11
5.2.80.0030.05310.95
5.2.70.0000.05011.14
5.2.60.0030.05011.13
5.2.50.0030.05311.08
5.2.40.0070.05011.14
5.2.30.0000.05311.06
5.2.20.0030.04310.93
5.2.10.0030.05311.09
5.2.00.0000.05310.73
5.1.60.0030.04310.08
5.1.50.0070.04010.17
5.1.40.0030.0439.80
5.1.30.0070.04310.40
5.1.20.0000.05010.49
5.1.10.0000.04010.06
5.1.00.0030.04710.14
5.0.50.0000.0409.79
5.0.40.0030.0309.79
5.0.30.0030.0539.79
5.0.20.0030.0339.79
5.0.10.0100.0309.79
5.0.00.0030.0539.79
4.4.90.0000.0309.79
4.4.80.0000.0239.79
4.4.70.0000.0279.79
4.4.60.0070.0279.79
4.4.50.0000.0309.79
4.4.40.0030.0479.79
4.4.30.0000.0339.79
4.4.20.0070.0279.79
4.4.10.0000.0309.79
4.4.00.0000.0479.79
4.3.110.0000.0309.79
4.3.100.0000.0309.79
4.3.90.0000.0309.79
4.3.80.0000.0479.79
4.3.70.0000.0309.79
4.3.60.0030.0279.79
4.3.50.0030.0279.79
4.3.40.0000.0439.79
4.3.30.0000.0279.79
4.3.20.0000.0309.79
4.3.10.0030.0179.79
4.3.00.0000.0209.79

preferences:
38.8 ms | 401 KiB | 5 Q