3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo foo::TWO; const ONE = 1; class foo { const TWO = ONE * 2; } ?>

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.0080.00816.50
8.3.60.0060.00918.39
8.3.50.0140.00522.70
8.3.40.0110.00718.73
8.3.30.0070.00718.75
8.3.20.0000.00720.35
8.3.10.0050.00321.78
8.3.00.0040.00419.85
8.2.190.0090.00918.29
8.2.180.0040.01118.54
8.2.170.0110.00418.96
8.2.160.0030.01022.96
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00421.06
8.2.110.0060.00322.07
8.2.100.0060.00617.72
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0080.00018.07
8.2.30.0040.00418.11
8.2.20.0040.00417.66
8.2.10.0000.00818.07
8.2.00.0030.00518.12
8.1.280.0110.00325.92
8.1.270.0070.00023.77
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00323.69
8.1.230.0090.00319.17
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0090.00018.10
8.1.170.0100.00318.40
8.1.160.0040.00418.81
8.1.150.0070.00020.52
8.1.140.0030.00619.41
8.1.130.0030.00317.62
8.1.120.0000.00717.43
8.1.110.0040.00417.27
8.1.100.0000.00717.42
8.1.90.0030.00617.38
8.1.80.0000.00817.23
8.1.70.0040.00417.35
8.1.60.0000.00917.46
8.1.50.0040.00417.46
8.1.40.0030.00617.47
8.1.30.0030.00517.61
8.1.20.0050.00317.47
8.1.10.0060.00317.43
8.1.00.0040.00417.45
8.0.300.0040.00420.64
8.0.290.0040.00417.16
8.0.280.0000.00818.39
8.0.270.0040.00416.87
8.0.260.0060.00017.15
8.0.250.0000.00716.89
8.0.240.0040.00417.00
8.0.230.0030.00316.91
8.0.220.0000.00816.96
8.0.210.0080.00016.98
8.0.200.0070.00017.02
8.0.190.0000.00916.88
8.0.180.0000.00716.90
8.0.170.0040.00416.88
8.0.160.0000.00716.99
8.0.150.0000.00716.89
8.0.140.0000.00716.94
8.0.130.0000.00513.38
8.0.120.0040.00416.79
8.0.110.0030.00516.95
8.0.100.0000.00717.00
8.0.90.0030.00516.75
8.0.80.0030.01216.96
8.0.70.0000.00816.81
8.0.60.0040.00416.85
8.0.50.0040.00416.97
8.0.30.0170.00017.03
8.0.20.0070.01117.40
8.0.10.0070.00016.88
8.0.00.0130.00616.67
7.4.330.0050.00015.08
7.4.320.0030.00316.57
7.4.300.0060.00016.52
7.4.290.0000.00716.43
7.4.280.0040.00416.50
7.4.270.0070.00016.50
7.4.260.0080.00016.52
7.4.250.0030.00316.40
7.4.240.0000.00716.54
7.4.230.0070.00016.61
7.4.220.0150.00416.57
7.4.210.0090.01216.39
7.4.200.0070.00016.32
7.4.160.0070.01116.45
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0120.00516.52
7.4.120.0070.01016.40
7.4.110.0080.00816.50
7.4.100.0060.01116.30
7.4.90.0060.01216.45
7.4.80.0140.00719.39
7.4.70.0030.01216.39
7.4.60.0100.00716.35
7.4.50.0030.01016.32
7.4.40.0070.01416.56
7.4.30.0040.01816.47
7.4.00.0110.00314.98
7.3.330.0030.00313.11
7.3.320.0000.00613.15
7.3.310.0000.00716.16
7.3.300.0070.00016.34
7.3.290.0030.00316.34
7.3.280.0100.00716.28
7.3.270.0140.00617.40
7.3.260.0090.00916.40
7.3.250.0110.00816.22
7.3.240.0170.00416.42
7.3.230.0110.00616.39
7.3.210.0070.01116.32
7.3.200.0090.00616.39
7.3.190.0130.00716.40
7.3.180.0100.00716.47
7.3.170.0130.01016.48
7.3.160.0080.00816.23
7.3.10.0110.00316.68
7.3.00.0030.00716.62
7.2.330.0100.00916.30
7.2.320.0090.00916.58
7.2.310.0060.01216.39
7.2.300.0120.00616.51
7.2.290.0160.00616.73
7.2.130.0090.00616.87
7.2.120.0060.00317.00
7.2.110.0040.00716.93
7.2.100.0070.00716.89
7.2.90.0060.00616.84
7.2.80.0040.00716.84
7.2.70.0070.00716.74
7.2.60.0070.00616.84
7.2.50.0000.01316.57
7.2.40.0000.00916.95
7.2.30.0030.01016.71
7.2.20.0000.01616.70
7.2.10.0070.00716.74
7.2.00.0070.00817.72
7.1.250.0090.00615.83
7.1.200.0000.00915.66
7.1.100.0000.01118.02
7.1.70.0000.01117.11
7.1.60.0070.00719.75
7.1.50.0000.01916.62
7.1.00.0070.07322.27
7.0.200.0000.00716.74
7.0.90.0230.05319.96
7.0.80.0130.06019.92
7.0.70.0300.05319.95
7.0.60.0200.06019.94
7.0.50.1530.04320.32
7.0.40.0300.05320.30
7.0.30.0300.07320.32
7.0.20.0300.05720.36
7.0.10.0270.05720.34
7.0.00.0330.05320.39
5.6.230.0070.07020.81
5.6.220.0200.05020.65
5.6.210.0100.06020.64
5.6.200.0230.05021.06
5.6.190.0070.06321.09
5.6.180.0130.06021.17
5.6.170.0130.05721.04
5.6.160.0130.05721.08
5.6.150.0130.05721.08
5.6.140.0230.05721.07
5.6.130.0270.07321.19
5.6.120.0170.07021.08
5.6.110.0170.05721.07
5.6.100.0200.05321.05
5.6.90.0170.06020.99
5.6.80.0130.05320.47
5.6.70.0230.04720.45
5.6.60.0100.05720.52
5.6.50.0170.06720.46
5.6.40.0200.05020.43
5.6.30.0070.06320.53
5.6.20.0130.05320.38
5.6.10.0170.05320.37
5.6.00.0130.05720.39

preferences:
35.89 ms | 401 KiB | 5 Q