3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function bar() { return 1; } } $foo = new foo(); echo $foo->bar(); $array = array('a', 'b', 'c');

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.00316.50
8.3.50.0090.00622.02
8.3.40.0110.00418.45
8.3.30.0070.00719.08
8.3.20.0040.00420.33
8.3.10.0050.00323.38
8.3.00.0040.00420.94
8.2.180.0070.01016.50
8.2.170.0040.01122.96
8.2.160.0070.00720.57
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.13
8.2.110.0030.00622.12
8.2.100.0080.00417.78
8.2.90.0060.00319.00
8.2.80.0030.00617.97
8.2.70.0000.00917.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00418.14
8.2.30.0040.00418.00
8.2.20.0040.00417.57
8.2.10.0070.00017.57
8.2.00.0000.00717.57
8.1.280.0090.00625.92
8.1.270.0080.00023.79
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00823.82
8.1.230.0110.00019.05
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.25
8.1.190.0040.00417.40
8.1.180.0040.00418.10
8.1.170.0030.00618.47
8.1.160.0000.00721.95
8.1.150.0050.00218.41
8.1.140.0040.00417.39
8.1.130.0000.00717.77
8.1.120.0030.00317.40
8.1.110.0020.00517.39
8.1.100.0040.00417.30
8.1.90.0030.00717.38
8.1.80.0000.00717.46
8.1.70.0000.00717.27
8.1.60.0000.00817.63
8.1.50.0040.00417.54
8.1.40.0030.00517.52
8.1.30.0040.00417.57
8.1.20.0050.00317.58
8.1.10.0020.00517.61
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0070.00018.45
8.0.270.0070.00017.25
8.0.260.0030.00316.82
8.0.250.0000.00716.94
8.0.240.0000.00716.79
8.0.230.0030.00316.86
8.0.220.0000.00716.86
8.0.210.0070.00016.84
8.0.200.0000.00916.87
8.0.190.0040.00416.80
8.0.180.0000.00716.75
8.0.170.0050.00316.70
8.0.160.0030.00316.86
8.0.150.0040.00716.82
8.0.140.0050.00516.75
8.0.130.0000.00513.30
8.0.120.0040.00416.75
8.0.110.0000.00816.79
8.0.100.0060.00316.66
8.0.90.0040.00416.73
8.0.80.0090.00616.79
8.0.70.0040.00416.73
8.0.60.0080.00016.88
8.0.50.0000.00716.73
8.0.30.0080.01017.13
8.0.20.0080.01117.40
8.0.10.0030.00517.01
8.0.00.0100.01116.76
7.4.330.0030.00315.09
7.4.320.0060.00016.55
7.4.300.0040.00416.52
7.4.290.0000.00716.51
7.4.280.0030.00316.64
7.4.270.0050.00316.61
7.4.260.0030.00316.59
7.4.250.0080.00016.44
7.4.240.0040.00316.46
7.4.230.0070.00016.57
7.4.220.0040.01416.62
7.4.210.0090.00616.63
7.4.200.0040.00416.39
7.4.190.0030.00316.69
7.4.160.0130.00816.30
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0050.01116.51
7.4.120.0070.01016.54
7.4.110.0080.00816.36
7.4.100.0070.01016.65
7.4.90.0130.00416.59
7.4.80.0060.01519.39
7.4.70.0140.00616.50
7.4.60.0070.00816.30
7.4.50.0030.00316.38
7.4.40.0040.01122.77
7.4.30.0060.01016.48
7.4.00.0090.00614.71
7.3.330.0000.00513.32
7.3.320.0000.00513.01
7.3.310.0030.00616.26
7.3.300.0040.00416.25
7.3.290.0090.00616.24
7.3.280.0100.00916.24
7.3.270.0140.01117.40
7.3.260.0130.00316.32
7.3.250.0070.01016.26
7.3.240.0130.00616.23
7.3.230.0120.00416.39
7.3.210.0160.00016.31
7.3.200.0150.00819.39
7.3.190.0090.01216.17
7.3.180.0040.01116.52
7.3.170.0060.00916.27
7.3.160.0160.00016.26
7.3.120.0070.00714.48
7.2.330.0090.00616.73
7.2.320.0140.00716.47
7.2.310.0130.01016.47
7.2.300.0030.01316.73
7.2.290.0050.01116.52
7.2.00.0100.00719.33
7.1.100.0030.01417.95
7.1.70.0030.00716.90
7.1.60.0100.01019.29
7.1.50.0030.01016.93
7.1.00.0030.07722.35
7.0.200.0040.00716.61
7.0.140.0130.06322.09
7.0.60.0100.07019.91
7.0.50.0030.03717.94
7.0.40.0070.05319.96
7.0.30.0170.05020.11
7.0.20.0500.04720.33
7.0.10.0070.05320.21
7.0.00.0170.07320.16
5.6.280.0030.07320.93
5.6.210.0070.04020.51
5.6.200.0070.08718.19
5.6.190.0130.08320.34
5.6.180.0330.06020.34
5.6.170.0300.07320.47
5.6.160.0070.07720.46
5.6.150.0030.04718.15
5.6.140.0100.07318.17
5.6.130.0030.05018.28
5.6.120.0030.05321.02
5.6.110.0100.08021.11
5.6.100.0130.03021.14
5.6.90.0200.07021.12
5.6.80.0170.02720.42
5.5.350.4130.03720.39
5.5.340.0000.06717.92
5.5.330.0130.05720.21
5.5.320.0070.08720.25
5.5.310.0330.03720.19
5.5.300.0170.07317.96
5.5.290.0000.04718.08
5.5.280.0070.08720.88
5.5.270.0030.05320.77
5.5.260.0130.07320.79
5.5.250.0070.08720.68
5.5.240.0200.07320.07
5.4.450.3430.03719.52
5.4.440.3300.03319.56
5.4.430.3200.04719.48
5.4.420.3130.04019.41
5.4.410.3730.03319.29
5.4.400.0030.04019.11
5.4.390.3070.03318.98
5.4.380.3570.03718.86
5.4.370.3130.04019.08
5.4.360.3630.03719.08
5.4.350.3370.03719.13
5.4.340.3270.04018.87
5.4.320.3470.03318.98
5.4.310.3430.03719.15
5.4.300.3130.04319.14
5.4.290.3230.04019.10
5.4.280.3130.04018.94
5.4.270.3170.03319.15
5.4.260.3300.02319.23
5.4.250.3130.03719.27
5.4.240.3170.03719.14
5.4.230.3300.02718.94
5.4.220.3170.03318.97
5.4.210.3430.04319.22
5.4.200.3300.04019.18
5.4.190.3130.04019.18
5.4.180.3230.04019.14
5.4.170.3500.04019.09
5.4.160.3900.04018.92
5.4.150.3500.03319.16
5.4.140.3230.03016.57
5.4.130.4030.03316.38
5.4.120.3430.03316.45
5.4.110.3570.03316.51
5.4.100.3170.03316.54
5.4.90.3470.04016.56
5.4.80.2830.03016.26
5.4.70.3370.04016.44
5.4.60.3500.03716.49
5.4.50.3470.04016.55
5.4.40.4400.04316.44
5.4.30.3400.04316.34
5.4.20.3170.03716.55
5.4.10.3130.03316.50
5.4.00.3870.03315.75
5.3.290.3200.04014.67
5.3.280.3130.03714.81
5.3.270.3330.03314.50
5.3.260.3430.04014.59
5.3.250.3430.03714.64
5.3.240.3430.03714.59
5.3.230.3470.03314.81
5.3.220.3470.03714.71
5.3.210.3600.04314.68
5.3.200.3330.02714.54
5.3.190.2400.04314.47
5.3.180.3630.04014.55
5.3.170.3600.04314.66
5.3.160.3270.04314.53
5.3.150.3470.03014.67
5.3.140.3030.04314.47
5.3.130.3130.04014.46
5.3.120.3600.03314.47
5.3.110.3170.04014.70
5.3.100.3700.03714.05
5.3.90.5100.03314.02
5.3.80.4000.04014.00
5.3.70.3400.03714.07
5.3.60.3130.03013.90
5.3.50.3770.03714.17
5.3.40.3330.03713.95
5.3.30.3070.04013.91
5.3.20.3330.04013.77
5.3.10.3230.03013.73
5.3.00.3300.04013.71
5.2.170.2800.02711.23
5.2.160.2870.02711.06
5.2.150.2800.02711.17
5.2.140.2800.03011.22
5.2.130.2970.02011.08
5.2.120.2770.02311.18
5.2.110.2900.03011.03
5.2.100.3200.03011.32
5.2.90.2870.03011.01
5.2.80.2700.03011.18
5.2.70.2730.02711.30
5.2.60.2700.02710.95
5.2.50.2730.03311.02
5.2.40.2100.03010.91
5.2.30.2800.03310.89
5.2.20.2870.03310.91
5.2.10.2400.03010.97
5.2.00.2830.03310.76
5.1.60.2830.03010.07
5.1.50.2830.0279.97
5.1.40.3470.0339.88
5.1.30.2330.03310.27
5.1.20.2430.02310.25
5.1.10.2170.02010.05
5.1.00.2170.02310.00
5.0.50.1300.0208.70
5.0.40.1370.0278.39
5.0.30.1300.0408.30
5.0.20.1370.0138.25
5.0.10.1500.0208.25
5.0.00.1370.0338.06
4.4.90.1130.0175.89
4.4.80.1070.0135.87
4.4.70.1500.0135.87
4.4.60.1500.0175.87
4.4.50.1500.0235.87
4.4.40.1230.0275.92
4.4.30.1430.0175.89
4.4.20.1300.0175.87
4.4.10.1300.0235.90
4.4.00.1230.0275.87
4.3.110.1200.0175.87
4.3.100.1270.0175.87
4.3.90.1270.0175.87
4.3.80.1570.0235.87
4.3.70.1630.0175.87
4.3.60.1330.0175.87
4.3.50.1300.0135.87
4.3.40.1630.0205.87
4.3.30.0700.0135.87
4.3.20.0870.0205.87
4.3.10.0730.0175.87
4.3.00.0670.0135.87

preferences:
49.43 ms | 401 KiB | 5 Q