3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( '{!' . (string)2 + 1 . '}' ); // The "." and "+" have the same precedence, so how operations are grouped // comes down to their associativity. Left associativity means the operations // were grouped like: var_dump( (('{!' . (string)2) + 1) . '}' );

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.0150.00018.79
8.3.30.0140.00019.04
8.3.20.0040.00420.20
8.3.10.0080.00023.70
8.3.00.0050.00319.04
8.2.170.0060.00822.96
8.2.160.0100.00720.37
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00020.53
8.2.110.0060.00321.98
8.2.100.0110.00017.91
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0040.00717.75
8.2.60.0000.00818.03
8.2.50.0000.00918.07
8.2.40.0000.00819.76
8.2.30.0080.00318.23
8.2.20.0040.00417.61
8.2.10.0040.00417.93
8.2.00.0070.00017.61
8.1.270.0060.00323.75
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.11
8.1.230.0040.00818.81
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0070.00021.97
8.1.150.0000.00818.57
8.1.140.0030.00617.35
8.1.130.0000.00717.64
8.1.120.0050.00217.39
8.1.110.0050.00317.30
8.1.100.0000.00717.31
8.1.90.0070.00017.43
8.1.80.0040.00417.34
8.1.70.0030.00317.38
8.1.60.0000.01417.53
8.1.50.0040.00417.48
8.1.40.0030.00517.50
8.1.30.0040.00717.52
8.1.20.0000.00817.55
8.1.10.0040.00417.51
8.1.00.0030.00617.50
8.0.300.0040.00418.77
8.0.290.0000.00717.28
8.0.280.0030.00318.38
8.0.270.0070.00017.13
8.0.260.0030.00317.30
8.0.250.0050.00317.05
8.0.240.0070.00016.90
8.0.230.0000.00817.07
8.0.220.0000.00716.87
8.0.210.0070.00016.90
8.0.200.0040.00417.03
8.0.190.0000.00816.98
8.0.180.0040.00416.98
8.0.170.0030.00616.85
8.0.160.0070.00017.01
8.0.150.0030.00716.97
8.0.140.0000.00716.91
8.0.130.0000.00513.39
8.0.120.0040.00416.84
8.0.110.0040.00416.84
8.0.100.0000.00817.01
8.0.90.0040.00416.95
8.0.80.0070.01416.91
8.0.70.0080.00016.83
8.0.60.0000.00716.78
8.0.50.0040.00416.73
8.0.30.0080.01117.19
8.0.20.0130.00517.40
8.0.10.0040.00416.91
8.0.00.0120.00716.92
7.4.330.0000.00615.00
7.4.320.0070.00016.32
7.4.300.0080.00016.45
7.4.290.0070.00016.42
7.4.280.0000.00816.41
7.4.270.0030.00316.42
7.4.260.0030.00316.51
7.4.250.0040.00416.39
7.4.240.0050.00216.47
7.4.230.0070.00016.31
7.4.220.0070.01116.48
7.4.210.0090.00516.46
7.4.200.0030.00316.49
7.4.190.0000.00716.63
7.4.160.0060.00916.37
7.4.150.0100.01317.40
7.4.140.0090.00917.86
7.4.130.0110.00516.45
7.4.120.0100.00616.43
7.4.110.0160.00616.39
7.4.100.0050.01516.49
7.4.90.0080.01116.59
7.4.80.0120.00619.39
7.4.70.0070.01016.57
7.4.60.0070.01116.47
7.4.50.0000.00516.36
7.4.40.0190.00316.43
7.4.30.0110.00616.40
7.4.00.0040.01314.66
7.3.330.0030.00313.18
7.3.320.0020.00213.12
7.3.310.0030.00316.22
7.3.300.0000.00616.29
7.3.290.0120.00316.25
7.3.280.0130.00516.26
7.3.270.0030.01317.40
7.3.260.0140.00416.43
7.3.250.0080.01116.29
7.3.240.0100.00716.34
7.3.230.0120.00716.43
7.3.210.0000.01716.54
7.3.200.0050.01119.39
7.3.190.0150.00616.23
7.3.180.0030.01216.54
7.3.170.0090.00616.46
7.3.160.0130.01016.20
7.3.120.0070.00714.65
7.3.110.0070.01014.66
7.3.100.0080.00814.90
7.3.90.0000.01014.79
7.3.80.0070.01014.93
7.3.70.0070.00314.56
7.3.60.0140.00014.79
7.3.50.0060.00314.53
7.3.40.0000.00914.36
7.3.30.0050.00514.57
7.3.20.0030.00916.65
7.3.10.0080.00516.62
7.3.00.0080.00516.61
7.2.330.0140.00716.36
7.2.320.0070.01616.21
7.2.310.0090.00916.30
7.2.300.0130.00716.70
7.2.290.0090.01216.64
7.2.250.0070.01014.73
7.2.240.0130.00714.93
7.2.230.0070.01114.97
7.2.220.0060.00614.82
7.2.210.0060.00915.10
7.2.200.0080.00414.64
7.2.190.0060.01014.87
7.2.180.0070.00714.89
7.2.170.0060.01014.97
7.2.130.0050.01016.79
7.2.120.0100.00516.84
7.2.110.0050.00716.74
7.2.100.0090.00316.78
7.2.90.0030.01316.85
7.2.80.0050.00916.75
7.2.70.0070.00916.91
7.2.60.0040.01216.82
7.2.50.0100.00416.87
7.2.40.0130.00316.72
7.2.30.0030.01516.80
7.2.20.0060.00916.65
7.2.10.0100.00716.85
7.2.00.0040.01016.77
7.1.330.0070.00415.63
7.1.320.0040.00815.69
7.1.310.0040.00415.59
7.1.300.0040.00415.66
7.1.290.0070.00415.83
7.1.280.0070.00715.62
7.1.270.0030.00615.68
7.1.260.0000.01515.76
7.1.250.0050.00715.72
7.1.200.0040.00715.70
7.1.70.0030.00617.01
7.1.60.0090.00619.46
7.1.50.0100.01016.83
7.1.00.0070.07322.35
7.0.200.0030.00316.41
7.0.140.0030.07321.95
7.0.60.0100.04319.85
7.0.50.0130.06717.79
7.0.40.0070.08720.21
7.0.30.0370.05020.21
7.0.20.0230.06720.03
7.0.10.0100.07720.34
7.0.00.0070.04320.20
5.6.280.0000.07721.06
5.6.210.0100.06320.50
5.6.200.0070.03718.21
5.6.190.0130.07320.43
5.6.180.3430.03720.45
5.6.170.0270.04320.50
5.6.160.0030.08320.61
5.6.150.0000.04018.12
5.6.140.0100.07318.16
5.6.130.0170.07018.12
5.6.120.0070.04021.07
5.6.110.0100.08020.99
5.6.100.0130.08021.00
5.6.90.0030.05021.12
5.6.80.0000.04020.36
5.6.70.4570.03320.36
5.5.350.0000.07020.38
5.5.340.0070.04017.92
5.5.330.0030.04020.25
5.5.320.0300.08020.41
5.5.310.0030.06020.32
5.5.300.0100.06317.91
5.5.290.0130.07317.92
5.5.280.0030.05020.96
5.5.270.0030.05020.83
5.5.260.0000.04320.64
5.5.250.0130.07320.53
5.5.240.0270.06720.13
5.4.450.0800.06019.45
5.4.440.0700.05719.48
5.4.430.0700.05719.62
5.4.420.0670.00019.25
5.4.410.0070.06018.93
5.4.400.0230.05318.74
5.4.390.0300.04318.46
5.4.380.0300.04718.51
5.4.370.0070.03718.61
5.4.360.0070.04018.64
5.4.350.0090.04511.97
5.4.340.0060.04211.97
5.4.320.0030.03812.45
5.4.310.0040.04012.45
5.4.300.0100.03212.45
5.4.290.0110.03912.45
5.4.280.0030.04012.34
5.4.270.0090.03412.34
5.4.260.0050.04012.35
5.4.250.0070.03912.34
5.4.240.0080.03712.34
5.4.230.0030.04212.34
5.4.220.0090.03512.34
5.4.210.0080.05112.34
5.4.200.0070.04012.33
5.4.190.0060.03712.34
5.4.180.0090.03412.33
5.4.170.0080.04012.35
5.4.160.0090.03412.34
5.4.150.0100.04412.34
5.4.140.0050.05512.02
5.4.130.0070.05012.01
5.4.120.0130.05611.97
5.4.110.0120.06311.96
5.4.100.0080.04811.96
5.4.90.0060.04611.96
5.4.80.0080.03611.96
5.4.70.0050.03711.96
5.4.60.0060.04411.96
5.4.50.0080.03511.96
5.4.40.0050.03711.95
5.4.30.0030.03811.95
5.4.20.0070.03711.95
5.4.10.0080.03511.95
5.4.00.0100.04011.44
5.3.290.0070.03712.80
5.3.280.0100.04812.70
5.3.270.0080.05512.72
5.3.260.0100.05412.71
5.3.250.0080.05412.72
5.3.240.0080.05312.72
5.3.230.0120.05312.71
5.3.220.0100.05412.68
5.3.210.0120.06912.68
5.3.200.0090.05312.68
5.3.190.0060.06312.68
5.3.180.0130.06812.67
5.3.170.0140.06912.67
5.3.160.0050.04212.68
5.3.150.0080.06912.67
5.3.140.0100.05012.66
5.3.130.0080.05412.66
5.3.120.0080.05412.66
5.3.110.0090.06512.66
5.3.100.0080.05212.12
5.3.90.0080.03812.08
5.3.80.0070.03812.07
5.3.70.0150.04612.08
5.3.60.0060.03912.07
5.3.50.0100.03212.00
5.3.40.0070.03512.00
5.3.30.0140.04311.94
5.3.20.0090.04711.72
5.3.10.0060.05111.69
5.3.00.0110.05111.67
5.2.170.0110.0439.18
5.2.160.0070.0439.17
5.2.150.0050.0319.18
5.2.140.0060.0339.17
5.2.130.0060.0339.13
5.2.120.0080.0279.13
5.2.110.0050.0309.14
5.2.100.0050.0279.13
5.2.90.0040.0359.13
5.2.80.0040.0309.13
5.2.70.0060.0299.13
5.2.60.0040.0319.08
5.2.50.0050.0309.05
5.2.40.0060.0299.03
5.2.30.0050.0329.00
5.2.20.0030.0329.00
5.2.10.0070.0288.93
5.2.00.0060.0298.79
5.1.60.0050.0248.07
5.1.50.0040.0258.07
5.1.40.0040.0258.05
5.1.30.0060.0258.40
5.1.20.0080.0238.42
5.1.10.0060.0258.15
5.1.00.0280.0758.15
5.0.50.0040.0286.63
5.0.40.0090.0306.49
5.0.30.0070.0416.30
5.0.20.0070.0256.27
5.0.10.0020.0316.24
5.0.00.0050.0406.24
4.4.90.0040.0224.78
4.4.80.0050.0214.75
4.4.70.0040.0174.75
4.4.60.0090.0264.75
4.4.50.0040.0234.77
4.4.40.0040.0414.71
4.4.30.0050.0164.76
4.4.20.0040.0164.85
4.4.10.0020.0164.85
4.4.00.0040.0254.76
4.3.110.0010.0184.67
4.3.100.0020.0174.66
4.3.90.0030.0154.63
4.3.80.0040.0234.58
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0020.0163.30
4.3.20.0020.0163.27
4.3.10.0040.0133.23
4.3.00.0000.0236.66

preferences:
30.6 ms | 400 KiB | 5 Q