3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function x() { echo "HELLO "; return true; } function y() { echo "GOOD BYE "; return true; } } $a = new foo; if (!$a->x() || $a->y()) { echo " :)"; }

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.0100.01016.38
8.3.50.0130.00321.95
8.3.40.0090.00918.86
8.3.30.0040.01118.97
8.3.20.0080.00020.07
8.3.10.0000.00723.54
8.3.00.0040.00418.96
8.2.180.0000.01616.38
8.2.170.0140.00022.96
8.2.160.0030.01220.15
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00320.79
8.2.110.0090.00020.52
8.2.100.0040.00817.71
8.2.90.0060.00318.22
8.2.80.0060.00317.97
8.2.70.0080.00017.38
8.2.60.0000.00917.92
8.2.50.0050.00318.07
8.2.40.0000.00821.01
8.2.30.0050.00218.31
8.2.20.0000.00817.72
8.2.10.0050.00217.97
8.2.00.0060.00317.67
8.1.280.0070.01025.92
8.1.270.0030.00623.96
8.1.260.0140.00026.35
8.1.250.0050.00228.09
8.1.240.0000.00822.10
8.1.230.0080.00320.97
8.1.220.0080.00017.74
8.1.210.0090.00018.89
8.1.200.0060.00317.35
8.1.190.0000.00917.36
8.1.180.0000.00918.10
8.1.170.0030.00618.59
8.1.160.0080.00022.00
8.1.150.0050.00318.50
8.1.140.0040.00417.48
8.1.130.0000.00717.76
8.1.120.0000.00717.48
8.1.110.0070.00017.50
8.1.100.0000.00817.44
8.1.90.0030.00417.50
8.1.80.0050.00317.30
8.1.70.0070.00017.45
8.1.60.0040.00417.58
8.1.50.0060.00317.54
8.1.40.0030.00517.46
8.1.30.0000.00817.55
8.1.20.0040.00417.63
8.1.10.0030.00617.61
8.1.00.0040.00717.50
8.0.300.0040.00419.96
8.0.290.0000.00717.18
8.0.280.0030.00318.31
8.0.270.0030.00317.18
8.0.260.0000.00617.25
8.0.250.0070.00016.94
8.0.240.0040.00416.95
8.0.230.0070.00016.98
8.0.220.0000.00716.81
8.0.210.0000.00816.79
8.0.200.0000.00716.83
8.0.190.0030.00516.93
8.0.180.0000.00816.92
8.0.170.0080.00016.81
8.0.160.0000.00716.91
8.0.150.0060.00316.72
8.0.140.0070.00016.83
8.0.130.0070.00013.32
8.0.120.0080.00016.78
8.0.110.0040.00416.88
8.0.100.0080.00016.94
8.0.90.0000.00716.78
8.0.80.0140.00716.87
8.0.70.0040.00416.77
8.0.60.0030.00416.68
8.0.50.0050.00316.68
8.0.30.0140.01016.89
8.0.20.0130.00417.40
8.0.10.0040.00416.95
8.0.00.0090.01016.91
7.4.330.0000.00515.00
7.4.320.0030.00316.41
7.4.300.0030.00316.49
7.4.290.0040.00416.42
7.4.280.0000.00716.56
7.4.270.0000.00716.62
7.4.260.0000.00716.38
7.4.250.0070.00016.42
7.4.240.0020.00516.55
7.4.230.0070.00016.35
7.4.220.0060.01316.43
7.4.210.0030.01116.47
7.4.200.0030.00316.47
7.4.190.0050.00216.36
7.4.160.0080.01016.68
7.4.150.0060.01317.40
7.4.140.0100.00817.86
7.4.130.0090.00816.57
7.4.120.0060.01116.49
7.4.110.0070.01016.36
7.4.100.0090.00916.57
7.4.90.0030.01316.48
7.4.80.0170.00619.39
7.4.70.0070.01016.57
7.4.60.0140.00816.40
7.4.50.0050.00316.31
7.4.40.0040.01216.43
7.4.30.0120.00616.64
7.4.00.0040.00914.98
7.3.330.0060.00013.23
7.3.320.0050.00012.99
7.3.310.0030.00316.27
7.3.300.0000.00716.09
7.3.290.0040.01016.16
7.3.280.0110.00616.26
7.3.270.0100.00717.40
7.3.260.0060.01516.33
7.3.250.0090.00816.22
7.3.240.0120.00916.50
7.3.230.0140.00316.53
7.3.210.0160.00316.45
7.3.200.0100.01019.39
7.3.190.0070.01016.25
7.3.180.0030.01316.22
7.3.170.0070.00716.52
7.3.160.0100.00716.36
7.3.120.0030.01014.98
7.2.330.0100.00716.63
7.2.320.0090.00916.68
7.2.310.0060.01016.83
7.2.300.0070.01016.42
7.2.290.0080.01116.71
7.2.00.0030.00918.98
7.1.200.0040.00815.50
7.1.100.0000.01318.02
7.1.70.0030.00616.93
7.1.60.0170.00719.46
7.1.50.0040.01816.86
7.1.00.0030.07722.36
7.0.200.0000.00916.75
7.0.140.0070.06722.04
7.0.60.0070.03719.93
7.0.50.0030.04017.84
7.0.40.0130.08020.04
7.0.30.0300.07020.16
7.0.20.0200.04020.16
7.0.10.0130.08320.38
7.0.00.0170.04720.23
5.6.280.0070.07020.82
5.6.210.0030.09020.53
5.6.200.0070.03718.27
5.6.190.0100.07320.57
5.6.180.0070.09320.62
5.6.170.0200.04020.54
5.6.160.0130.08020.44
5.6.150.0070.08018.17
5.6.140.0030.08318.18
5.6.130.0100.06318.19
5.6.120.0030.08721.05
5.6.110.0100.08020.98
5.6.100.0130.07021.11
5.6.90.0130.04720.96
5.6.80.0030.08720.50
5.5.350.3970.04020.43
5.5.340.0100.04018.04
5.5.330.0130.07020.21
5.5.320.0330.07320.34
5.5.310.0470.06320.35
5.5.300.0070.07318.01
5.5.290.0100.03318.01
5.5.280.0170.07320.77
5.5.270.0070.06720.86
5.5.260.0100.06720.76
5.5.250.0130.07320.57
5.5.240.0100.07320.37
5.4.450.0300.04728.44
5.4.440.0230.04725.38
5.4.430.0300.04321.44
5.4.420.0270.04320.50
5.4.410.0200.04019.48
5.4.400.0200.03718.99
5.4.390.0170.05018.95
5.4.380.0370.03318.69
5.4.370.0170.06318.77
5.4.360.0100.06018.74
5.4.350.0170.07318.74
5.4.340.0230.05318.58
5.4.320.0060.04612.50
5.4.310.0040.05112.49
5.4.300.0090.03612.50
5.4.290.0060.03812.50
5.4.280.0060.03812.40
5.4.270.0060.04012.39
5.4.260.0090.04212.39
5.4.250.0080.03912.39
5.4.240.0060.04212.40
5.4.230.0090.04312.39
5.4.220.0090.04012.39
5.4.210.0050.04512.39
5.4.200.0100.04112.39
5.4.190.0050.04512.38
5.4.180.0060.04112.39
5.4.170.0050.04612.39
5.4.160.0050.04912.39
5.4.150.0090.04712.39
5.4.140.0070.05012.07
5.4.130.0090.04412.06
5.4.120.0060.04212.01
5.4.110.0070.04112.01
5.4.100.0110.03912.01
5.4.90.0110.04912.01
5.4.80.0110.04712.01
5.4.70.0040.05012.01
5.4.60.0050.05012.01
5.4.50.0060.04912.01
5.4.40.0100.04512.00
5.4.30.0060.04812.00
5.4.20.0100.04612.00
5.4.10.0080.04612.00
5.4.00.0060.05111.48
5.3.290.0090.03712.80
5.3.280.0120.05812.71
5.3.270.0060.05912.72
5.3.260.0100.05312.72
5.3.250.0150.07512.72
5.3.240.0100.04712.72
5.3.230.0090.04512.71
5.3.220.0120.04712.68
5.3.210.0110.05312.68
5.3.200.0080.05112.68
5.3.190.0070.05112.68
5.3.180.0130.04612.67
5.3.170.0090.05012.67
5.3.160.0090.05112.67
5.3.150.0100.06812.67
5.3.140.0120.06212.66
5.3.130.0130.05112.65
5.3.120.0100.05312.66
5.3.110.0090.05212.66
5.3.100.0080.05312.12
5.3.90.0080.05412.10
5.3.80.0070.04912.09
5.3.70.0060.05012.10
5.3.60.0070.05012.08
5.3.50.0090.04612.03
5.3.40.0070.04812.03
5.3.30.0080.04811.98
5.3.20.0110.04511.76
5.3.10.0110.04311.73
5.3.00.0100.04911.73
5.2.170.0090.0399.22
5.2.160.0070.0419.22
5.2.150.0060.0419.23
5.2.140.0070.0429.22
5.2.130.0060.0409.18
5.2.120.0040.0429.18
5.2.110.0050.0419.18
5.2.100.0070.0379.18
5.2.90.0030.0439.18
5.2.80.0040.0429.17
5.2.70.0080.0399.18
5.2.60.0070.0419.13
5.2.50.0060.0459.10
5.2.40.0100.0349.07
5.2.30.0100.0389.05
5.2.20.0060.0399.03
5.2.10.0050.0378.94
5.2.00.0110.0368.81
5.1.60.0070.0358.09
5.1.50.0070.0338.09
5.1.40.0040.0368.07
5.1.30.0060.0368.41
5.1.20.0050.0388.45
5.1.10.0060.0338.16
5.1.00.0080.0328.16
5.0.50.0040.0276.64
5.0.40.0040.0286.50
5.0.30.0070.0356.32
5.0.20.0040.0256.27
5.0.10.0040.0266.26
5.0.00.0110.0336.25
4.4.90.0070.0164.78
4.4.80.0060.0184.75
4.4.70.0040.0194.76
4.4.60.0040.0204.76
4.4.50.0020.0234.77
4.4.40.0040.0344.71
4.4.30.0050.0204.76
4.4.20.0060.0204.85
4.4.10.0040.0184.85
4.4.00.0060.0274.76
4.3.110.0040.0234.67
4.3.100.0040.0254.67
4.3.90.0060.0434.63
4.3.80.0030.0454.58
4.3.70.0050.0204.63
4.3.60.0060.0184.63
4.3.50.0030.0224.63
4.3.40.0040.0344.54
4.3.30.0080.0863.30
4.3.20.0080.0393.29
4.3.10.0010.0233.24
4.3.00.0030.01317.48

preferences:
41.1 ms | 401 KiB | 5 Q