3v4l.org

run code in 300+ PHP versions simultaneously
Predict the output of the following program code? <?php $i=1; $j=2; $s= $i+$j; echo $s; ?>

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.0090.00618.30
8.3.50.0120.00317.89
8.3.40.0090.00618.70
8.3.30.0110.00418.60
8.3.20.0070.00021.86
8.3.10.0000.00821.63
8.3.00.0090.00023.66
8.2.180.0070.01016.38
8.2.170.0080.00822.96
8.2.160.0140.00022.96
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.94
8.2.120.0080.00026.35
8.2.110.0060.00321.18
8.2.100.0070.00417.91
8.2.90.0080.00017.72
8.2.80.0000.00818.22
8.2.70.0050.00317.80
8.2.60.0050.00217.93
8.2.50.0000.00718.10
8.2.40.0040.00719.22
8.2.30.0000.00719.10
8.2.20.0040.00418.06
8.2.10.0000.00718.21
8.2.00.0030.00518.00
8.1.280.0150.00325.92
8.1.270.0050.00323.97
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00424.02
8.1.230.0080.00420.90
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0050.00318.58
8.1.160.0040.00418.82
8.1.150.0050.00218.88
8.1.140.0040.00417.55
8.1.130.0030.00318.96
8.1.120.0040.00317.41
8.1.110.0040.00417.27
8.1.100.0000.00717.41
8.1.90.0040.00417.41
8.1.80.0000.00717.34
8.1.70.0000.00717.43
8.1.60.0000.00917.57
8.1.50.0000.00817.45
8.1.40.0040.00417.39
8.1.30.0000.00817.62
8.1.20.0000.00717.62
8.1.10.0040.00417.42
8.1.00.0090.00017.33
8.0.300.0070.00020.09
8.0.290.0000.01016.63
8.0.280.0030.00318.46
8.0.270.0030.00317.18
8.0.260.0000.00617.18
8.0.250.0060.00316.90
8.0.240.0030.00316.84
8.0.230.0060.00316.75
8.0.220.0040.00416.79
8.0.210.0030.00316.80
8.0.200.0030.00316.94
8.0.190.0050.00216.93
8.0.180.0000.00716.73
8.0.170.0030.00516.84
8.0.160.0080.00016.80
8.0.150.0000.00716.79
8.0.140.0040.00416.66
8.0.130.0050.00013.18
8.0.120.0000.00716.80
8.0.110.0050.00216.81
8.0.100.0050.00316.60
8.0.90.0080.00016.72
8.0.80.0120.00316.72
8.0.70.0040.00416.82
8.0.60.0030.00616.69
8.0.50.0020.00516.82
8.0.30.0070.01016.89
8.0.20.0120.01117.40
8.0.10.0040.00416.88
8.0.00.0120.00516.71
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0000.00616.44
7.4.290.0000.00716.42
7.4.280.0050.00316.52
7.4.270.0030.00316.44
7.4.260.0000.01116.49
7.4.250.0000.00716.42
7.4.240.0030.00316.52
7.4.230.0000.00816.60
7.4.220.0000.00816.47
7.4.210.0040.01416.40
7.4.200.0000.00716.54
7.4.160.0130.00616.51
7.4.140.0080.01217.86
7.4.130.0140.00316.26
7.4.120.0100.00716.37
7.4.110.0180.00016.26
7.4.100.0100.00716.53
7.4.90.0100.01016.36
7.4.80.0040.01919.39
7.4.70.0080.00816.43
7.4.60.0040.01316.43
7.4.50.0040.01516.30
7.4.40.0060.01016.59
7.4.00.0040.01414.58
7.3.330.0030.00513.11
7.3.320.0000.00513.07
7.3.310.0030.00316.15
7.3.300.0000.00716.06
7.3.290.0030.00316.10
7.3.280.0060.00916.18
7.3.260.0090.00816.14
7.3.240.0080.00916.34
7.3.230.0170.00016.50
7.3.210.0090.01316.29
7.3.200.0080.00816.45
7.3.190.0060.01016.27
7.3.180.0120.00616.37
7.3.170.0150.00716.32
7.3.160.0060.00916.23
7.2.330.0070.01116.49
7.2.320.0110.00716.32
7.2.310.0060.01216.57
7.2.300.0060.01016.61
7.2.290.0120.00616.42
7.2.60.0180.01216.55
7.2.50.0250.00916.13
7.2.40.0110.01117.64
7.2.30.5150.01317.74
7.2.20.5430.01117.68
7.2.10.2370.01217.78
7.2.00.2030.01217.78
7.1.200.0040.00715.89
7.1.160.0090.01116.73
7.1.150.2750.01116.69
7.1.140.1830.01016.67
7.1.130.3470.01316.67
7.1.120.1680.01016.56
7.1.110.1460.00916.02
7.1.100.1440.01016.14
7.1.90.1320.01016.02
7.1.80.1590.01016.16
7.1.70.1300.00915.28
7.1.60.1730.01533.18
7.1.50.2540.01232.75
7.1.40.3010.01532.49
7.1.30.0300.01232.55
7.1.20.0320.01132.55
7.1.10.0110.01114.68
7.1.00.0160.01314.82

preferences:
55.29 ms | 401 KiB | 5 Q