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; // 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. This has been around since at least PHP 3. */

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.0070.01116.63
8.3.60.0110.00718.17
8.3.50.0090.00921.97
8.3.40.0070.01018.59
8.3.30.0120.00318.82
8.3.20.0080.00020.13
8.3.10.0080.00023.53
8.3.00.0050.00320.86
8.2.180.0080.00816.38
8.2.170.0110.00422.96
8.2.160.0100.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.88
8.2.110.0070.00321.11
8.2.100.0120.00018.22
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0030.00617.68
8.2.50.0050.00318.07
8.2.40.0040.00419.82
8.2.30.0040.00718.06
8.2.20.0040.00417.69
8.2.10.0040.00418.03
8.2.00.0020.00517.49
8.1.280.0090.00625.92
8.1.270.0060.00323.87
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0100.00020.87
8.1.230.0090.00319.02
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0060.00617.22
8.1.190.0040.00417.00
8.1.180.0030.00518.10
8.1.170.0000.00818.54
8.1.160.0040.00321.98
8.1.150.0080.00018.49
8.1.140.0040.00417.31
8.1.130.0070.00017.68
8.1.120.0070.00017.30
8.1.110.0000.00817.38
8.1.100.0070.00017.36
8.1.90.0030.00517.38
8.1.80.0040.00417.41
8.1.70.0000.00717.35
8.1.60.0060.00317.43
8.1.50.0040.00417.50
8.1.40.0040.00417.34
8.1.30.0070.00317.46
8.1.20.0000.00817.56
8.1.10.0080.00017.30
8.1.00.0030.00517.30
8.0.300.0080.00018.77
8.0.290.0080.00016.63
8.0.280.0040.00418.35
8.0.270.0040.00417.17
8.0.260.0050.00517.08
8.0.250.0030.00316.90
8.0.240.0000.00816.77
8.0.230.0000.00716.73
8.0.220.0030.00316.78
8.0.210.0000.00716.84
8.0.200.0060.00016.90
8.0.190.0090.00016.93
8.0.180.0000.00816.82
8.0.170.0040.00416.79
8.0.160.0040.00416.85
8.0.150.0080.00316.78
8.0.140.0000.00716.80
8.0.130.0030.00313.20
8.0.120.0000.00716.70
8.0.110.0070.00016.78
8.0.100.0040.00416.87
8.0.90.0040.00416.64
8.0.80.0090.00616.77
8.0.70.0040.00416.76
8.0.60.0000.00716.88
8.0.50.0040.00416.67
8.0.30.0070.01416.97
8.0.20.0080.01217.40
8.0.10.0040.00416.97
8.0.00.0090.00916.55
7.4.330.0000.00615.03
7.4.320.0030.00316.40
7.4.300.0030.00316.54
7.4.290.0030.00716.32
7.4.280.0040.00416.43
7.4.270.0000.00716.44
7.4.260.0000.00716.31
7.4.250.0050.00216.34
7.4.240.0000.00716.32
7.4.230.0070.00016.60
7.4.220.0110.00616.46
7.4.210.0120.00716.36
7.4.200.0070.00016.62
7.4.160.0060.01216.24
7.4.150.0050.01117.40
7.4.140.0090.00917.86
7.4.130.0060.01116.35
7.4.120.0100.00716.34
7.4.110.0070.01116.43
7.4.100.0050.01216.26
7.4.90.0120.00616.36
7.4.80.0070.01019.39
7.4.70.0090.00616.33
7.4.60.0070.01016.55
7.4.50.0000.00816.28
7.4.40.0130.00316.53
7.4.30.0070.01016.42
7.4.00.0070.00914.78
7.3.330.0030.00313.04
7.3.320.0020.00213.04
7.3.310.0030.00616.11
7.3.300.0070.00016.21
7.3.290.0070.00716.14
7.3.280.0110.00716.14
7.3.270.0090.00917.40
7.3.260.0120.00616.13
7.3.250.0120.00516.18
7.3.240.0080.00816.26
7.3.230.0030.01316.39
7.3.210.0160.01016.40
7.3.200.0130.01016.52
7.3.190.0100.00716.09
7.3.180.0000.01616.32
7.3.170.0060.01116.43
7.3.160.0090.00616.33
7.3.120.0030.01314.67
7.3.110.0070.00714.87
7.3.100.0070.00914.76
7.3.90.0080.00814.58
7.3.80.0080.00614.76
7.3.70.0070.00614.55
7.3.60.0120.00414.83
7.3.50.0090.00714.70
7.3.40.0070.00914.61
7.3.30.0050.01014.80
7.3.20.0040.00916.59
7.3.10.0070.00816.68
7.3.00.0060.00316.57
7.2.330.0000.01716.61
7.2.320.0130.00916.61
7.2.310.0030.01316.59
7.2.300.0070.01016.41
7.2.290.0100.01316.32
7.2.250.0000.01914.95
7.2.240.0070.01014.89
7.2.230.0090.00814.98
7.2.220.0060.00815.03
7.2.210.0050.01214.95
7.2.200.0030.01214.73
7.2.190.0060.00614.87
7.2.180.0070.00614.96
7.2.170.0050.01214.96
7.2.160.0050.00514.90
7.2.150.0140.00016.87
7.2.140.0110.00716.79
7.2.130.0090.00916.58
7.2.120.0110.00316.43
7.2.110.0040.01216.77
7.2.100.0070.00416.72
7.2.90.0120.00017.04
7.2.80.0030.00716.91
7.2.70.0080.00316.49
7.2.60.0150.00017.01
7.2.50.0060.01216.74
7.2.40.0090.00917.02
7.2.30.0080.00416.94
7.2.20.0060.00316.55
7.2.10.0030.00916.91
7.2.00.0080.00517.93
7.1.330.0080.00515.72
7.1.320.0060.00615.70
7.1.310.0100.00515.58
7.1.300.0060.00915.54
7.1.290.0060.00715.78
7.1.280.0070.00715.78
7.1.270.0060.01015.49
7.1.260.0050.00715.69
7.1.250.0060.00915.50
7.1.100.0050.00318.05
7.1.70.0000.00716.80
7.1.60.0100.01019.70
7.1.50.0130.00316.76
7.1.00.0030.07322.36
7.0.200.0110.00414.66
7.0.140.0030.07322.00
7.0.60.0170.06320.01
7.0.50.0070.07717.66
7.0.40.0000.06020.32
7.0.30.0270.04020.18
7.0.20.0300.05720.09
7.0.10.0130.08020.32
7.0.00.0070.05320.32
5.6.280.0000.07720.90
5.6.210.0070.08020.55
5.6.200.0070.08018.21
5.6.190.0070.06020.49
5.6.180.3730.04720.57
5.6.170.0200.05020.38
5.6.160.0070.05720.38
5.6.150.0070.07718.18
5.6.140.0070.05718.21
5.6.130.0130.07318.10
5.6.120.0030.04021.09
5.6.110.0100.08021.05
5.6.100.0070.08321.00
5.6.90.0000.05721.07
5.6.80.0200.07320.40
5.6.70.4330.03720.34
5.5.350.0170.05320.43
5.5.340.0070.08317.93
5.5.330.0030.05020.22
5.5.320.1130.04020.32
5.5.310.0230.05020.24
5.5.300.0100.03317.91
5.5.290.0070.08017.95
5.5.280.0030.08720.76
5.5.270.0100.06720.88
5.5.260.0030.08720.95
5.5.250.0100.06320.49
5.5.240.0200.06720.13
5.4.450.0530.04728.86
5.4.440.0400.04028.28
5.4.430.0270.04328.29
5.4.420.0070.04328.29
5.4.410.0530.04328.29
5.4.400.0170.04728.28
5.4.390.0470.04328.28
5.4.380.0600.06718.73
5.4.370.0200.04718.71
5.4.360.0100.05318.66
5.4.350.0130.05718.48
5.4.340.0170.05018.49
5.4.320.0070.04312.45
5.4.310.0060.04612.45
5.4.300.0050.04112.45
5.4.290.0050.04312.45
5.4.280.0080.04012.35
5.4.270.0040.04312.34
5.4.260.0080.04112.35
5.4.250.0110.03912.34
5.4.240.0080.04912.34
5.4.230.0070.05012.34
5.4.220.0110.04712.34
5.4.210.0060.04912.34
5.4.200.0140.04412.34
5.4.190.0090.04812.34
5.4.180.0130.04612.34
5.4.170.0060.05212.35
5.4.160.0090.04712.34
5.4.150.0120.05312.34
5.4.140.0140.05512.02
5.4.130.0120.05312.01
5.4.120.0140.05411.97
5.4.110.0060.06211.96
5.4.100.0140.05111.96
5.4.90.0120.05511.96
5.4.80.0080.05311.97
5.4.70.0100.05411.96
5.4.60.0100.05711.96
5.4.50.0120.06211.96
5.4.40.0120.05411.95
5.4.30.0100.05611.95
5.4.20.0100.04811.95
5.4.10.0070.05011.95
5.4.00.0120.05111.43
5.3.290.0070.04012.80
5.3.280.0110.05312.71
5.3.270.0110.05712.72
5.3.260.0140.05512.72
5.3.250.0070.06312.72
5.3.240.0110.05312.71
5.3.230.0100.05412.71
5.3.220.0120.05112.68
5.3.210.0080.05612.68
5.3.200.0080.05412.68
5.3.190.0090.05312.68
5.3.180.0040.05512.68
5.3.170.0090.05212.67
5.3.160.0110.05012.67
5.3.150.0060.05212.67
5.3.140.0060.05512.66
5.3.130.0090.05812.66
5.3.120.0090.05312.66
5.3.110.0140.04712.66
5.3.100.0140.04312.12
5.3.90.0100.04812.08
5.3.80.0050.05012.07
5.3.70.0090.04512.07
5.3.60.0050.04412.07
5.3.50.0060.04012.00
5.3.40.0080.03612.00
5.3.30.0080.03911.94
5.3.20.0080.04111.71
5.3.10.0050.05311.69
5.3.00.0080.04111.67
5.2.170.0050.0379.18
5.2.160.0060.0389.18
5.2.150.0100.0349.18
5.2.140.0080.0349.18
5.2.130.0070.0339.14
5.2.120.0100.0309.14
5.2.110.0100.0349.14
5.2.100.0060.0309.14
5.2.90.0030.0359.14
5.2.80.0040.0339.14
5.2.70.0060.0319.14
5.2.60.0040.0319.09
5.2.50.0070.0309.06
5.2.40.0050.0329.04
5.2.30.0080.0299.01
5.2.20.0060.0299.00
5.2.10.0090.0328.92
5.2.00.0090.0398.79
5.1.60.0080.0328.07
5.1.50.0070.0268.06
5.1.40.0030.0278.05
5.1.30.0020.0318.39
5.1.20.0060.0338.42
5.1.10.0070.0318.14
5.1.00.0050.0308.14
5.0.50.0070.0206.62
5.0.40.0020.0246.48
5.0.30.0050.0346.29
5.0.20.0040.0266.27
5.0.10.0030.0296.24
5.0.00.0060.0396.23
4.4.90.0080.0194.78
4.4.80.0040.0214.76
4.4.70.0060.0194.76
4.4.60.0030.0224.76
4.4.50.0020.0204.77
4.4.40.0030.0264.71
4.4.30.0050.0144.76
4.4.20.0040.0164.84
4.4.10.0060.0144.85
4.4.00.0050.0264.76
4.3.110.0040.0184.67
4.3.100.0040.0184.67
4.3.90.0050.0174.64
4.3.80.0060.0224.59
4.3.70.0020.0164.63
4.3.60.0040.0144.63
4.3.50.0040.0164.63
4.3.40.0050.0234.54
4.3.30.0040.0173.29
4.3.20.0000.0203.26
4.3.10.0030.0163.22
4.3.00.0100.01728.28

preferences:
52.92 ms | 401 KiB | 5 Q