3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{} class test{ function test1() { return 0; } } echo('olá'); ?>

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.0090.00916.63
8.3.50.0120.00921.21
8.3.40.0080.01118.84
8.3.30.0180.00618.28
8.3.20.0060.00618.65
8.3.10.0000.00821.38
8.3.00.0080.00019.07
8.2.180.0140.00418.29
8.2.170.0080.01222.96
8.2.160.0160.00318.58
8.2.150.0080.00024.18
8.2.140.0090.00924.66
8.2.130.0080.00021.02
8.2.120.0040.00426.35
8.2.110.0040.00422.08
8.2.100.0040.00717.61
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00617.93
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0040.00420.53
8.2.20.0020.00517.42
8.2.10.0000.00717.80
8.2.00.0000.00717.92
8.1.280.0070.01025.92
8.1.270.0070.00023.91
8.1.260.0000.00728.09
8.1.250.0050.00328.09
8.1.240.0060.00321.12
8.1.230.0040.00717.42
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.09
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0090.00018.65
8.1.160.0070.00018.93
8.1.150.0000.00718.71
8.1.140.0030.00619.44
8.1.130.0030.00317.57
8.1.120.0030.00317.35
8.1.110.0040.00417.34
8.1.100.0000.00717.34
8.1.90.0040.00417.21
8.1.80.0030.00517.28
8.1.70.0070.00017.18
8.1.60.0040.00417.39
8.1.50.0000.00917.38
8.1.40.0040.00417.43
8.1.30.0060.00317.39
8.1.20.0020.00517.47
8.1.10.0040.00417.22
8.1.00.0030.00617.28
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.24
8.0.270.0000.00717.10
8.0.260.0000.00617.29
8.0.250.0000.00716.83
8.0.240.0030.00316.82
8.0.230.0000.00716.88
8.0.220.0000.00716.79
8.0.210.0030.00316.66
8.0.200.0030.00316.68
8.0.190.0040.00316.88
8.0.180.0070.00016.78
8.0.170.0020.00516.77
8.0.160.0030.00316.86
8.0.150.0030.00316.73
8.0.140.0000.00716.70
8.0.130.0060.00013.27
8.0.120.0030.00616.62
8.0.110.0000.00816.66
8.0.100.0040.00416.67
8.0.90.0070.00016.75
8.0.80.0080.00816.70
8.0.70.0040.00416.80
8.0.60.0040.00416.80
8.0.50.0040.00416.72
8.0.30.0100.00817.09
8.0.20.0080.01217.40
8.0.10.0040.00416.84
8.0.00.0100.00816.65
7.4.330.0000.00615.08
7.4.320.0030.00316.42
7.4.300.0030.00316.26
7.4.290.0030.00316.46
7.4.280.0000.00616.38
7.4.270.0030.00316.42
7.4.260.0000.00716.45
7.4.250.0080.00016.34
7.4.240.0000.00716.49
7.4.230.0070.00016.12
7.4.220.0140.00716.31
7.4.210.0080.01016.41
7.4.200.0000.00716.45
7.4.160.0110.00416.18
7.4.150.0130.00417.40
7.4.140.0100.00817.86
7.4.130.0080.00916.39
7.4.120.0140.00616.39
7.4.110.0080.00816.36
7.4.100.0070.01016.57
7.4.90.0130.00316.48
7.4.80.0090.00919.39
7.4.70.0060.00916.26
7.4.60.0080.00916.34
7.4.50.0140.00016.22
7.4.40.0120.00616.18
7.4.30.0120.00416.48
7.4.00.0050.01114.60
7.3.330.0030.00313.03
7.3.320.0030.00313.20
7.3.310.0030.00316.19
7.3.300.0000.00716.18
7.3.290.0000.00716.18
7.3.280.0070.01216.16
7.3.270.0090.00917.40
7.3.260.0130.00316.43
7.3.250.0090.00816.34
7.3.240.0100.01016.45
7.3.230.0060.01016.43
7.3.210.0030.01316.35
7.3.200.0060.00916.40
7.3.190.0100.00716.49
7.3.180.0130.00316.19
7.3.170.0100.01116.44
7.3.160.0070.01016.21
7.3.120.0080.01014.74
7.3.110.0070.00714.84
7.3.100.0060.01014.43
7.3.90.0040.00914.54
7.3.80.0030.00914.62
7.3.70.0050.00714.65
7.3.60.0030.00714.54
7.3.50.0070.00814.59
7.3.40.0030.01114.72
7.3.30.0030.01114.62
7.3.20.0070.00516.55
7.3.10.0040.00916.53
7.3.00.0030.00916.55
7.2.330.0120.00616.55
7.2.320.0150.00316.43
7.2.310.0110.01116.66
7.2.300.0120.01216.43
7.2.290.0110.01116.64
7.2.250.0090.00914.60
7.2.240.0080.00914.89
7.2.230.0070.00914.75
7.2.220.0020.01114.66
7.2.210.0030.01115.07
7.2.200.0100.00514.96
7.2.190.0080.00515.01
7.2.180.0060.00614.95
7.2.170.0050.01014.84
7.2.160.0090.00415.01
7.2.150.0070.01016.86
7.2.140.0140.00416.69
7.2.130.0100.00616.77
7.2.120.0090.00316.70
7.2.110.0150.00416.86
7.2.100.0040.01216.80
7.2.90.0080.01216.42
7.2.80.0060.01016.35
7.2.70.0080.00816.92
7.2.60.0110.00816.83
7.2.50.0090.00916.73
7.2.40.0090.00916.83
7.2.30.0030.01216.52
7.2.20.0040.00816.71
7.2.10.0120.00616.62
7.2.00.0070.00818.08
7.1.330.0110.00515.80
7.1.320.0000.01115.58
7.1.310.0060.00815.68
7.1.300.0060.00615.53
7.1.290.0100.00915.62
7.1.280.0060.01215.79
7.1.270.0060.00615.65
7.1.260.0040.00915.65
7.1.250.0070.00715.79
7.1.100.0070.00717.86
7.1.70.0090.00016.83
7.1.60.0030.01920.41
7.1.00.0070.07322.44
7.0.200.0000.00916.71
7.0.60.0100.07321.84
7.0.50.0070.08717.86
7.0.40.0030.06720.32
7.0.30.0300.06320.32
7.0.20.0300.06320.25
7.0.10.0370.05320.31
7.0.00.0530.06720.32
5.6.280.0000.07720.78
5.6.210.0070.08020.56
5.6.200.0070.06718.14
5.6.190.0100.06021.13
5.6.180.0370.05320.94
5.6.170.0270.07021.11
5.6.160.0370.05021.13
5.6.150.0370.04721.03
5.6.140.0330.05021.16
5.6.130.0300.06321.09
5.6.120.0100.06321.15
5.6.110.0030.07021.01
5.6.100.0170.05321.15
5.6.90.0200.05721.02
5.6.80.0200.05020.41
5.6.70.0170.05320.54
5.6.60.0130.05720.31
5.6.50.0130.05720.41
5.6.40.0100.06320.30
5.6.30.0270.05020.41
5.6.20.0200.05020.51
5.6.10.0230.04320.49
5.6.00.0230.04720.36
5.5.350.0170.07720.28
5.5.340.0100.04717.99
5.5.330.0170.05320.80
5.5.320.0200.06320.86
5.5.310.0270.06321.02
5.5.300.0330.06020.85
5.5.290.0330.05720.69
5.5.280.0130.06021.01
5.5.270.0130.05720.82
5.5.260.0130.06020.93
5.5.250.0130.06020.65
5.5.240.0200.05020.37
5.5.230.0330.04320.41
5.5.220.0100.05720.07
5.5.210.0100.05720.26
5.5.200.0130.05720.23
5.5.190.0030.07020.39
5.5.180.0070.06320.20
5.5.160.0230.04320.20
5.5.150.0130.05020.23
5.5.140.0100.06320.23
5.5.130.0370.04320.33
5.5.120.0200.05720.28
5.5.110.0100.06320.18
5.5.100.0030.06320.10
5.5.90.0200.04720.19
5.5.80.0270.05320.15
5.5.70.0230.05720.06
5.5.60.0170.06320.15
5.5.50.0300.04720.16
5.5.40.0230.05320.14
5.5.30.0330.05020.10
5.5.20.0270.06320.15
5.5.10.0300.05320.09
5.5.00.0370.05020.05

preferences:
59.23 ms | 401 KiB | 5 Q