3v4l.org

run code in 300+ PHP versions simultaneously
<?php // int isn't a reserved word, right? // So this should work fine! const int = 7; $a = int; var_dump($a); // Let's try using it! //var_dump(int); /* Wait, what? A parse error? Why, you might ask? (int) is a special case in the lexer. Turns out that casts are lexed specially. Why? Probably to stop the type names being reserved words... that worked out spectacularly, didn't it? The best bit, though, is that this has been around since PHP 3, so it's most likely the fault of Zeev Suraski or Andi Gutmans. Good job. */

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.0110.00316.50
8.3.50.0100.00722.00
8.3.40.0140.00718.54
8.3.30.0070.00718.83
8.3.20.0040.00420.20
8.3.10.0030.00523.66
8.3.00.0030.00520.96
8.2.180.0150.00416.38
8.2.170.0070.00722.96
8.2.160.0100.00320.41
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00720.57
8.2.110.0060.00320.29
8.2.100.0070.00319.30
8.2.90.0030.00519.12
8.2.80.0000.00817.97
8.2.70.0100.00017.63
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0030.00519.94
8.2.30.0000.01118.21
8.2.20.0040.00417.68
8.2.10.0000.00817.95
8.2.00.0000.00817.67
8.1.280.0160.00325.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.67
8.1.230.0080.00419.20
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0050.00517.48
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0030.00518.64
8.1.160.0030.00322.12
8.1.150.0000.00718.62
8.1.140.0040.00417.31
8.1.130.0000.00717.66
8.1.120.0000.00717.36
8.1.110.0080.00017.43
8.1.100.0050.00217.45
8.1.90.0040.00417.40
8.1.80.0000.00717.33
8.1.70.0000.00717.42
8.1.60.0030.00617.53
8.1.50.0040.00417.52
8.1.40.0050.00217.39
8.1.30.0030.00717.63
8.1.20.0000.00717.64
8.1.10.0040.00417.46
8.1.00.0040.00417.29
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.35
8.0.270.0000.00817.25
8.0.260.0000.00717.18
8.0.250.0030.00316.96
8.0.240.0000.00716.90
8.0.230.0030.00316.77
8.0.220.0000.00716.88
8.0.210.0090.00016.80
8.0.200.0030.00316.90
8.0.190.0030.00316.86
8.0.180.0030.00316.79
8.0.170.0000.00816.79
8.0.160.0000.00716.79
8.0.150.0070.00016.73
8.0.140.0000.00716.89
8.0.130.0000.00513.30
8.0.120.0040.00416.69
8.0.110.0040.00416.77
8.0.100.0050.00316.69
8.0.90.0030.00516.70
8.0.80.0060.00916.82
8.0.70.0000.00816.77
8.0.60.0040.00416.73
8.0.50.0050.00216.81
8.0.30.0090.00916.98
8.0.20.0100.00817.40
8.0.10.0050.00216.96
8.0.00.0100.00716.65
7.4.330.0000.00615.00
7.4.320.0000.00616.40
7.4.300.0000.00616.59
7.4.290.0000.00716.52
7.4.280.0050.00216.49
7.4.270.0030.00316.50
7.4.260.0090.00016.63
7.4.250.0000.00816.45
7.4.240.0040.00316.58
7.4.230.0070.00016.53
7.4.220.0060.01216.59
7.4.210.0060.00916.61
7.4.200.0030.00316.61
7.4.160.0080.00816.65
7.4.150.0070.01117.40
7.4.140.0070.01017.86
7.4.130.0120.00816.44
7.4.120.0080.00816.50
7.4.110.0040.01216.38
7.4.100.0100.01016.36
7.4.90.0060.01216.33
7.4.80.0150.00719.39
7.4.70.0000.01716.50
7.4.60.0130.00316.48
7.4.50.0040.00016.53
7.4.40.0030.01316.43
7.4.30.0030.01216.39
7.4.00.0060.01014.82
7.3.330.0000.00512.93
7.3.320.0030.00313.04
7.3.310.0030.00316.13
7.3.300.0030.00316.04
7.3.290.0030.01016.19
7.3.280.0060.01016.17
7.3.270.0090.01517.40
7.3.260.0070.01016.23
7.3.250.0110.00616.31
7.3.240.0130.00716.18
7.3.230.0000.01616.39
7.3.210.0120.00616.37
7.3.200.0080.00819.39
7.3.190.0090.01216.30
7.3.180.0080.00816.35
7.3.170.0130.00316.27
7.3.160.0080.00816.23
7.3.120.0110.00414.98
7.2.330.0080.00816.40
7.2.320.0110.01116.73
7.2.310.0080.00816.29
7.2.300.0110.00716.54
7.2.290.0080.00816.72
7.2.60.0070.00716.55
7.2.00.0000.01519.23
7.1.200.0230.00315.79
7.1.100.0070.00317.98
7.1.70.0030.00517.14
7.1.60.0140.01119.70
7.1.50.0100.01016.80
7.1.00.0000.08022.54
7.0.200.0030.00616.45
7.0.140.0000.07321.96
7.0.60.0300.07320.05
7.0.50.0030.07317.84
7.0.40.0030.04720.20
7.0.30.0500.08020.39
7.0.20.0270.07320.00
7.0.10.0070.07020.15
7.0.00.0130.04320.16
5.6.280.0030.07721.10
5.6.210.0070.08320.55
5.6.200.0170.08018.13
5.6.190.0030.07020.56
5.6.180.4070.04320.57
5.6.170.0200.08320.71
5.6.160.0100.06020.49
5.6.150.0100.07718.20
5.6.140.0200.07018.15
5.6.130.0070.08318.07
5.6.120.0100.07720.96
5.6.110.0170.05720.90
5.6.100.0000.09021.00
5.6.90.0130.07720.96
5.6.80.0070.05020.43
5.5.350.0200.07720.52
5.5.340.0100.07718.02
5.5.330.0070.05320.28
5.5.320.0270.05020.27
5.5.310.0400.06320.13
5.5.300.0070.08017.98
5.5.290.0070.03717.98
5.5.280.0170.04720.84
5.5.270.0070.04020.77
5.5.260.0130.08020.78
5.5.250.0170.07720.55
5.5.240.0330.06320.18
5.4.450.0370.04329.93
5.4.440.0170.05029.92
5.4.430.0330.05028.29
5.4.420.0400.03328.29
5.4.410.0370.04328.29
5.4.400.0200.04728.29
5.4.390.0770.04328.29
5.4.380.0770.06018.79
5.4.370.0870.04718.57
5.4.360.0870.05318.64
5.4.350.0770.06018.62
5.4.340.0800.05018.66
5.4.320.0080.03412.45
5.4.310.0070.04312.45
5.4.300.0130.04412.45
5.4.290.0080.04712.45
5.4.280.0100.03712.34
5.4.270.0060.04212.35
5.4.260.0040.04412.35
5.4.250.0090.04312.34
5.4.240.0080.05112.35
5.4.230.0090.05112.34
5.4.220.0120.04812.34
5.4.210.0090.04712.34
5.4.200.0110.04712.34
5.4.190.0160.03712.33
5.4.180.0060.03912.34
5.4.170.0060.04312.34
5.4.160.0090.03912.34
5.4.150.0080.04712.34
5.4.140.0060.04912.02
5.4.130.0080.04612.01
5.4.120.0080.04911.96
5.4.110.0080.04811.96
5.4.100.0060.04111.96
5.4.90.0110.04311.96
5.4.80.0090.04111.96
5.4.70.0100.03511.96
5.4.60.0070.03911.96
5.4.50.0110.03511.96
5.4.40.0100.03511.95
5.4.30.0080.04011.95
5.4.20.0060.04611.95
5.4.10.0060.04511.95
5.4.00.0090.04011.44
5.3.290.0050.03912.80
5.3.280.0090.04112.71
5.3.270.0080.04212.72
5.3.260.0100.04712.71
5.3.250.0150.05512.72
5.3.240.0100.05012.71
5.3.230.0080.04512.71
5.3.220.0080.04312.68
5.3.210.0100.04412.68
5.3.200.0080.04612.68
5.3.190.0070.04812.68
5.3.180.0080.04012.67
5.3.170.0070.06912.67
5.3.160.0070.04312.68
5.3.150.0070.04212.67
5.3.140.0100.04212.66
5.3.130.0100.04512.65
5.3.120.0100.04812.66
5.3.110.0110.04212.66
5.3.100.0080.04212.12
5.3.90.0100.03912.09
5.3.80.0140.03712.08
5.3.70.0060.04512.08
5.3.60.0080.04412.06
5.3.50.0080.05412.00
5.3.40.0130.03812.00
5.3.30.0090.04011.94
5.3.20.0060.04111.71
5.3.10.0100.04011.69
5.3.00.0070.04411.67
5.2.170.0080.0339.18
5.2.160.0070.0339.18
5.2.150.0100.0329.18
5.2.140.0060.0339.18
5.2.130.0060.0419.14
5.2.120.0070.0409.14
5.2.110.0060.0339.14
5.2.100.0080.0319.14
5.2.90.0050.0339.14
5.2.80.0050.0349.14
5.2.70.0060.0339.14
5.2.60.0040.0369.09
5.2.50.0070.0329.05
5.2.40.0030.0359.04
5.2.30.0060.0429.01
5.2.20.0040.0349.01
5.2.10.0060.0298.93
5.2.00.0080.0318.79
5.1.60.0070.0308.07
5.1.50.0030.0328.06
5.1.40.0060.0268.05
5.1.30.0060.0428.40
5.1.20.0090.0388.42
5.1.10.0080.0358.14
5.1.00.0050.0358.14
5.0.50.0040.0276.62
5.0.40.0040.0286.48
5.0.30.0060.0406.29
5.0.20.0050.0256.27
5.0.10.0060.0266.24
5.0.00.0040.0386.23
4.4.90.0030.0214.78
4.4.80.0030.0214.75
4.4.70.0040.0174.75
4.4.60.0040.0174.76
4.4.50.0030.0174.77
4.4.40.0020.0294.71
4.4.30.0030.0214.76
4.4.20.0040.0214.84
4.4.10.0040.0224.85
4.4.00.0020.0334.76
4.3.110.0010.0244.67
4.3.100.0040.0164.67
4.3.90.0050.0184.63
4.3.80.0020.0334.59
4.3.70.0040.0234.63
4.3.60.0060.0184.63
4.3.50.0040.0164.63
4.3.40.0040.0274.53
4.3.30.0010.0233.28
4.3.20.0040.0213.26
4.3.10.0040.0203.22
4.3.00.0030.01728.29

preferences:
34.86 ms | 401 KiB | 5 Q