3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { const INFO = 'info'; public static $messages = [Something::INFO => 'info']; }

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.40.0100.01018.59
8.3.30.0070.00718.71
8.3.20.0040.00420.30
8.3.10.0040.00421.70
8.3.00.0080.00019.07
8.2.170.0140.00422.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00417.68
8.2.110.0050.00322.12
8.2.100.0130.00017.59
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00817.38
8.2.60.0050.00317.68
8.2.50.0060.00318.07
8.2.40.0060.00319.69
8.2.30.0040.00417.98
8.2.20.0080.00017.54
8.2.10.0050.00217.98
8.2.00.0000.00717.54
8.1.270.0030.00618.59
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.93
8.1.230.0030.00919.23
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00017.10
8.1.190.0000.00817.10
8.1.180.0030.00518.10
8.1.170.0090.00018.65
8.1.160.0000.00721.84
8.1.150.0030.00318.71
8.1.140.0000.00917.24
8.1.130.0030.00317.69
8.1.120.0070.00017.31
8.1.110.0000.00817.27
8.1.100.0030.00317.35
8.1.90.0000.00717.32
8.1.80.0000.00717.28
8.1.70.0040.00417.33
8.1.60.0000.00817.50
8.1.50.0040.00417.43
8.1.40.0050.00317.28
8.1.30.0040.00417.47
8.1.20.0000.00717.38
8.1.10.0040.00417.39
8.1.00.0000.00717.33
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0040.00418.25
8.0.270.0000.00817.13
8.0.260.0030.00317.16
8.0.250.0000.00716.86
8.0.240.0030.00316.83
8.0.230.0080.00016.71
8.0.220.0000.00716.71
8.0.210.0000.00716.63
8.0.200.0090.00016.82
8.0.190.0050.00316.80
8.0.180.0040.00416.79
8.0.170.0030.00516.62
8.0.160.0030.00316.78
8.0.150.0030.00316.73
8.0.140.0000.00816.71
8.0.130.0060.00013.15
8.0.120.0050.00316.72
8.0.110.0040.00416.77
8.0.100.0070.00016.78
8.0.90.0050.00316.73
8.0.80.0040.01416.73
8.0.70.0000.00716.60
8.0.60.0070.00016.72
8.0.50.0000.00816.77
8.0.30.0110.01117.14
8.0.20.0130.00817.40
8.0.10.0050.00316.82
8.0.00.0140.00316.59
7.4.330.0000.00615.03
7.4.320.0060.00016.31
7.4.300.0040.00416.43
7.4.290.0030.00316.46
7.4.280.0020.00516.33
7.4.270.0000.00716.23
7.4.260.0000.00716.34
7.4.250.0000.00716.28
7.4.240.0000.00716.32
7.4.230.0000.00716.49
7.4.220.0100.00716.47
7.4.210.0140.00016.39
7.4.200.0000.00716.34
7.4.160.0120.00916.24
7.4.150.0170.00717.40
7.4.140.0090.00817.86
7.4.130.0060.01616.33
7.4.120.0100.00716.26
7.4.110.0030.01616.41
7.4.100.0060.01216.34
7.4.90.0100.00716.21
7.4.80.0090.01219.39
7.4.70.0110.00916.45
7.4.60.0120.00616.40
7.4.50.0040.00416.38
7.4.40.0040.01316.37
7.4.30.0100.00716.22
7.4.00.0090.00614.71
7.3.330.0070.00013.18
7.3.320.0050.00013.02
7.3.310.0000.00716.20
7.3.300.0040.00416.03
7.3.290.0060.00816.15
7.3.280.0070.01116.12
7.3.270.0040.01317.40
7.3.260.0100.01316.30
7.3.250.0090.00816.38
7.3.240.0090.00916.51
7.3.230.0060.01016.39
7.3.210.0070.01016.49
7.3.200.0150.00419.39
7.3.190.0150.00616.47
7.3.180.0090.00916.20
7.3.170.0090.00916.27
7.3.160.0090.00916.39
7.2.330.0170.00016.42
7.2.320.0080.00816.34
7.2.310.0120.00616.53
7.2.300.0060.00916.30
7.2.290.0120.00916.29
7.2.00.0030.00819.10
7.1.100.0040.00917.79
7.1.70.0060.00317.08
7.1.60.0100.01419.46
7.1.50.0030.01616.69
7.1.00.0030.07722.42
7.0.200.0060.00316.45
7.0.140.0030.04022.12
7.0.60.0100.06319.92
7.0.50.0100.07717.82
7.0.40.0100.06719.97
7.0.30.0270.06320.24
7.0.20.0200.08320.24
7.0.10.0100.05020.23
7.0.00.0200.07320.12
5.6.280.0100.06721.00
5.6.210.0100.06720.62
5.6.200.0000.09018.14
5.6.190.0070.05020.58
5.6.180.0730.04320.57
5.6.170.0370.07020.71
5.6.160.0100.08320.43
5.6.150.0130.07018.18
5.6.140.0070.05318.14
5.6.130.0030.08018.18
5.6.120.0000.05020.89
5.6.110.0070.08021.00
5.6.100.0070.07321.13
5.6.90.0000.04320.99
5.6.80.0070.05720.50
5.5.350.3770.04020.52
5.5.340.0130.07017.97
5.5.330.0030.07320.43
5.5.320.2070.04020.34
5.5.310.0300.06020.36
5.5.300.0030.08017.96
5.5.290.0100.07017.95
5.5.280.0070.08320.76
5.5.270.0070.08720.82
5.5.260.0130.08020.83
5.5.250.0070.08320.58
5.5.240.0100.07020.15
5.4.450.0630.06319.59
5.4.440.0170.05019.55
5.4.430.0200.05319.51
5.4.420.0230.04719.52
5.4.410.0170.07019.38
5.4.400.0070.08019.39
5.4.390.0270.04318.73
5.4.380.0200.05318.72
5.4.370.0170.05718.76
5.4.360.0000.06718.86
5.4.350.0170.06318.74
5.4.340.0200.05018.61
5.4.320.0170.05718.80
5.4.310.0300.04018.83
5.4.300.0170.05318.68
5.4.290.0100.06018.68
5.4.280.0270.05018.71
5.4.270.0230.04718.65
5.4.260.0130.05718.57
5.4.250.0130.06718.80
5.4.240.0170.06018.78
5.4.230.0270.04718.77
5.4.220.0130.06318.57
5.4.210.0200.05018.77
5.4.200.0230.05016.63
5.4.190.0170.05018.73
5.4.180.0300.06018.57
5.4.170.0200.05018.59
5.4.160.0230.05018.57
5.4.150.0130.06318.76
5.4.140.0170.06316.27
5.4.130.0200.06716.31
5.4.120.0130.05716.28
5.4.110.0230.04316.21
5.4.100.0170.05316.21
5.4.90.0170.05016.26
5.4.80.0100.06316.19
5.4.70.0200.04716.22
5.4.60.0200.04716.16
5.4.50.0130.05316.25
5.4.40.0170.05316.15
5.4.30.0100.06016.43
5.4.20.0300.04016.22
5.4.10.0200.04716.25
5.4.00.0100.05315.74

preferences:
31.45 ms | 400 KiB | 5 Q