3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function exec() { echo 'ok'; } } $test = new Test(); $test->exec();

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.00718.18
8.3.50.0140.00522.05
8.3.40.0070.00718.74
8.3.30.0070.00718.56
8.3.20.0040.00418.73
8.3.10.0000.00820.39
8.3.00.0000.00721.89
8.2.180.0060.00816.38
8.2.170.0090.00622.96
8.2.160.0090.00620.35
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00019.51
8.2.110.0030.00722.03
8.2.100.0110.00017.91
8.2.90.0000.00719.21
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0000.00918.17
8.2.30.0040.00419.82
8.2.20.0000.00817.47
8.2.10.0040.00417.55
8.2.00.0000.00817.61
8.1.280.0030.01425.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00622.46
8.1.230.0070.00420.88
8.1.220.0050.00318.77
8.1.210.0000.01118.77
8.1.200.0030.00617.22
8.1.190.0030.00517.41
8.1.180.0020.00518.10
8.1.170.0080.00018.50
8.1.160.0000.00718.73
8.1.150.0050.00218.50
8.1.140.0000.00817.41
8.1.130.0000.00717.82
8.1.120.0030.00517.40
8.1.110.0040.00417.44
8.1.100.0030.00517.29
8.1.90.0070.00017.37
8.1.80.0000.00717.37
8.1.70.0080.00017.32
8.1.60.0060.00317.57
8.1.50.0030.00617.43
8.1.40.0040.00417.34
8.1.30.0000.00717.47
8.1.20.0040.00417.54
8.1.10.0040.00417.49
8.1.00.0040.00717.41
8.0.300.0000.00819.93
8.0.290.0030.00517.18
8.0.280.0000.00718.39
8.0.270.0040.00417.26
8.0.260.0030.00316.78
8.0.250.0000.00716.89
8.0.240.0050.00516.89
8.0.230.0000.00816.87
8.0.220.0030.00316.89
8.0.210.0000.00716.80
8.0.200.0070.00016.88
8.0.190.0040.00416.91
8.0.180.0040.00416.86
8.0.170.0040.00416.78
8.0.160.0000.00716.87
8.0.150.0040.00416.62
8.0.140.0040.00716.70
8.0.130.0000.00513.29
8.0.120.0050.00216.80
8.0.110.0060.00316.89
8.0.100.0000.00716.87
8.0.90.0050.00216.63
8.0.80.0150.00016.86
8.0.70.0000.00716.89
8.0.60.0000.00816.66
8.0.50.0040.00416.91
8.0.30.0100.00817.06
8.0.20.0100.00817.40
8.0.10.0050.00216.94
8.0.00.0100.00816.75
7.4.330.0000.00514.76
7.4.320.0000.00616.44
7.4.300.0070.00016.42
7.4.290.0050.00216.45
7.4.280.0000.00716.51
7.4.270.0020.00516.41
7.4.260.0000.00713.28
7.4.250.0030.00516.59
7.4.240.0000.00816.41
7.4.230.0000.00716.69
7.4.220.0140.00416.64
7.4.210.0070.00816.58
7.4.200.0070.00016.66
7.4.190.0030.00316.67
7.4.160.0050.01116.41
7.4.150.0090.01217.40
7.4.140.0090.00917.86
7.4.130.0130.00816.59
7.4.120.0080.00816.51
7.4.110.0070.01116.52
7.4.100.0120.00916.63
7.4.90.0070.01016.27
7.4.80.0070.01419.04
7.4.70.0120.00616.46
7.4.60.0100.00716.36
7.4.50.0040.00416.45
7.4.40.0070.00722.27
7.4.30.0120.00616.36
7.4.00.0000.00815.03
7.3.330.0000.00613.10
7.3.320.0000.00512.98
7.3.310.0030.00316.22
7.3.300.0070.00016.26
7.3.290.0080.00616.23
7.3.280.0070.01116.25
7.3.270.0070.01017.40
7.3.260.0130.00618.24
7.3.250.0100.01016.49
7.3.240.0070.01116.41
7.3.230.0080.00816.48
7.3.210.0130.00416.21
7.3.200.0130.01019.39
7.3.190.0150.00616.16
7.3.180.0090.01416.32
7.3.170.0030.01516.32
7.3.160.0080.00816.29
7.3.120.0000.01414.38
7.2.330.0170.00016.61
7.2.320.0090.01216.31
7.2.310.0130.01016.43
7.2.300.0040.01316.65
7.2.290.0070.01016.57
7.2.60.0040.00416.98
7.2.00.0000.00819.54
7.1.200.0030.01015.80
7.1.100.0000.00818.07
7.1.70.0070.00716.75
7.1.60.0030.02119.40
7.1.50.0040.00716.87
7.1.00.0030.07022.28
7.0.200.0000.00816.68
7.0.140.0130.06321.91
7.0.60.0170.06319.94
7.0.50.0000.04317.83
7.0.40.0130.05320.27
7.0.30.0230.08720.06
7.0.20.0330.06320.09
7.0.10.0100.06320.10
7.0.00.0100.04020.30
5.6.280.0070.07021.07
5.6.210.0030.08320.75
5.6.200.0130.07318.20
5.6.190.0100.09020.77
5.6.180.0400.05320.39
5.6.170.0270.04020.54
5.6.160.0000.04720.54
5.6.150.0070.06018.27
5.6.140.0030.04718.28
5.6.130.0070.03718.28
5.6.120.0100.04321.00
5.6.110.0030.06721.01
5.6.100.0070.08021.14
5.6.90.0170.05720.95
5.6.80.0130.03320.40
5.5.350.0130.07320.41
5.5.340.0030.04718.01
5.5.330.0100.08720.38
5.5.320.0200.04720.27
5.5.310.0230.06720.34
5.5.300.0130.07717.94
5.5.290.0130.05017.95
5.5.280.0100.07020.68
5.5.270.0130.06020.76
5.5.260.0170.07020.74
5.5.250.0170.07720.48
5.5.240.0200.06320.24
5.4.450.0230.07019.54
5.4.440.0230.07019.54
5.4.430.0370.05019.55
5.4.420.0200.07019.52
5.4.410.0130.04319.26
5.4.400.0200.03319.00
5.4.390.0270.06019.25
5.4.380.0230.03019.08
5.4.370.0270.07019.08
5.4.360.0230.06718.84
5.4.350.0230.07019.14
5.4.340.0300.04019.09
5.4.320.0400.05019.21
5.4.310.0230.05319.13
5.4.300.0270.05719.13
5.4.290.0300.04019.12
5.4.280.0300.06719.06
5.4.270.0200.03719.05
5.4.260.0200.04018.87
5.4.250.0330.02719.13
5.4.240.0230.03719.21
5.4.230.0230.07019.06
5.4.220.0300.07718.98
5.4.210.0200.03719.23
5.4.200.0270.03018.83
5.4.190.0200.03319.30
5.4.180.0230.07319.13
5.4.170.0330.06018.93
5.4.160.0170.05019.09
5.4.150.0200.06018.96
5.4.140.0270.04716.50
5.4.130.0170.03716.45
5.4.120.0200.03316.41
5.4.110.0270.04316.51
5.4.100.0200.07016.37
5.4.90.0170.04016.45
5.4.80.0200.03716.54
5.4.70.0230.03016.52
5.4.60.0270.06316.49
5.4.50.0200.05016.43
5.4.40.0170.06016.16
5.4.30.0230.03316.42
5.4.20.0200.03316.52
5.4.10.0130.04016.46
5.4.00.0370.03715.82
5.3.290.0400.07314.77
5.3.280.0270.05014.59
5.3.270.0200.05314.51
5.3.260.0270.07314.61
5.3.250.0270.04714.61
5.3.240.0230.05014.57
5.3.230.0200.04014.49
5.3.220.0230.04714.71
5.3.210.0270.04314.69
5.3.200.0230.04014.64
5.3.190.0330.06314.46
5.3.180.0200.07314.63
5.3.170.0430.04714.61
5.3.160.0270.04714.59
5.3.150.0300.06714.54
5.3.140.0200.07014.57
5.3.130.0230.03714.62
5.3.120.0200.05714.51
5.3.110.0270.07014.52
5.3.100.0170.04014.15
5.3.90.0230.07013.99
5.3.80.0230.06314.04
5.3.70.0270.06713.93
5.3.60.0230.04314.15
5.3.50.0270.06314.03
5.3.40.0330.05713.85
5.3.30.0200.04313.81
5.3.20.0170.03313.83
5.3.10.0170.03313.71
5.3.00.0170.04713.70
5.2.170.0300.05311.05
5.2.160.0200.04311.15
5.2.150.0200.03011.20
5.2.140.0200.03011.05
5.2.130.0100.03011.23
5.2.120.0130.04011.26
5.2.110.0130.02711.21
5.2.100.0200.03011.17
5.2.90.0130.03311.10
5.2.80.0170.05011.00
5.2.70.0130.03011.09
5.2.60.0200.03011.05
5.2.50.0170.03311.14
5.2.40.0170.03011.08
5.2.30.0230.02710.86
5.2.20.0100.02710.88
5.2.10.0030.03010.94
5.2.00.0100.04010.63
5.1.60.0130.02010.07
5.1.50.0100.02310.00
5.1.40.0070.03710.15
5.1.30.0170.02710.23
5.1.20.0100.02710.57
5.1.10.0030.03010.29
5.1.00.0100.02310.14
5.0.50.0100.0178.52
5.0.40.0030.0278.64
5.0.30.0100.0438.10
5.0.20.0070.0178.13
5.0.10.0030.0208.08
5.0.00.0000.0478.16
4.4.90.0030.0177.49
4.4.80.0070.0237.49
4.4.70.0070.0137.49
4.4.60.0070.0177.49
4.4.50.0070.0177.49
4.4.40.0100.0207.49
4.4.30.0070.0207.49
4.4.20.0070.0137.49
4.4.10.0030.0177.49
4.4.00.0030.0277.49
4.3.110.0070.0177.49
4.3.100.0100.0277.49
4.3.90.0030.0177.49
4.3.80.0070.0237.49
4.3.70.0030.0177.49
4.3.60.0000.0337.49
4.3.50.0070.0307.49
4.3.40.0030.0237.49
4.3.30.0000.0207.49
4.3.20.0030.0177.49
4.3.10.0000.0207.49
4.3.00.0070.0137.49

preferences:
44.42 ms | 400 KiB | 5 Q