3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dpx = 2; $width = 100; $height = null; if ($dpx !== null) { if ($width !== null) { $width *= $dpx; } if ($height !== null) { $height *= $dpx; } } echo $width;

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.0040.01118.80
8.3.30.0070.00718.89
8.3.20.0050.00320.34
8.3.10.0050.00323.48
8.3.00.0080.00017.68
8.2.170.0140.00022.96
8.2.160.0100.00319.41
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0090.00017.75
8.2.110.0000.01122.20
8.2.100.0040.00717.93
8.2.90.0000.00719.25
8.2.80.0030.00517.97
8.2.70.0050.00517.75
8.2.60.0030.00817.91
8.2.50.0000.00818.07
8.2.40.0030.00919.31
8.2.30.0000.00820.57
8.2.20.0040.00417.74
8.2.10.0040.00418.00
8.2.00.0030.00518.11
8.1.270.0100.01023.64
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.01422.66
8.1.230.0000.01217.75
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0000.00917.10
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0050.00221.86
8.1.150.0030.00518.82
8.1.140.0050.00319.44
8.1.130.0030.00317.68
8.1.120.0000.00817.43
8.1.110.0030.00517.32
8.1.100.0030.00517.41
8.1.90.0080.00017.38
8.1.80.0000.00817.35
8.1.70.0040.00417.35
8.1.60.0040.00417.52
8.1.50.0030.00517.43
8.1.40.0040.00417.41
8.1.30.0040.00417.41
8.1.20.0040.00417.43
8.1.10.0070.00017.42
8.1.00.0070.00017.32
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0050.00317.25
8.0.260.0050.00318.48
8.0.250.0000.00716.82
8.0.240.0020.00516.84
8.0.230.0040.00416.83
8.0.220.0000.00716.80
8.0.210.0000.00716.83
8.0.200.0060.00316.86
8.0.190.0080.00016.84
8.0.180.0040.00416.84
8.0.170.0020.00516.84
8.0.160.0040.00416.81
8.0.150.0000.00716.64
8.0.140.0030.00316.73
8.0.130.0050.00013.20
8.0.120.0070.00016.76
8.0.110.0070.00016.77
8.0.100.0000.00716.93
8.0.90.0070.00016.94
8.0.80.0100.01016.84
8.0.70.0030.00516.79
8.0.60.0000.00716.85
8.0.50.0040.00416.78
8.0.30.0100.01017.05
8.0.20.0090.00917.40
8.0.10.0040.00416.74
8.0.00.0110.00716.68
7.4.330.0060.00015.12
7.4.320.0030.00516.54
7.4.300.0030.00316.57
7.4.290.0070.00016.55
7.4.280.0050.00316.49
7.4.270.0000.00716.64
7.4.260.0030.00716.45
7.4.250.0040.00416.52
7.4.240.0000.00716.51
7.4.230.0000.00716.67
7.4.220.0030.01616.50
7.4.210.0060.00916.56
7.4.200.0000.00816.34
7.4.160.0060.00916.35
7.4.150.0100.01317.40
7.4.140.0110.00817.86
7.4.130.0120.01216.39
7.4.120.0100.00816.41
7.4.110.0100.00716.61
7.4.100.0120.00616.35
7.4.90.0060.01516.46
7.4.80.0130.00319.39
7.4.70.0090.00916.54
7.4.60.0060.00916.65
7.4.50.0030.00316.19
7.4.40.0160.00316.38
7.4.30.0030.01916.33
7.4.10.0090.00614.83
7.4.00.0060.01015.09
7.3.330.0020.00213.09
7.3.320.0000.00512.98
7.3.310.0000.00716.39
7.3.300.0070.00016.23
7.3.290.0090.00816.24
7.3.280.0110.00816.24
7.3.270.0160.00017.40
7.3.260.0000.01616.48
7.3.240.0070.01216.31
7.3.230.0100.00716.39
7.3.210.0070.01316.28
7.3.200.0110.00516.36
7.3.190.0100.00716.49
7.3.180.0130.00616.33
7.3.170.0090.00816.34
7.3.160.0130.00316.38
7.3.130.0040.01114.66
7.3.120.0040.01514.56
7.3.110.0070.01014.46
7.3.100.0060.00614.67
7.3.90.0030.00514.77
7.3.80.0100.00015.00
7.3.70.0120.00614.71
7.3.60.0070.01014.66
7.3.50.0040.00814.78
7.3.40.0070.00314.79
7.3.30.0070.00414.75
7.3.20.0030.00616.57
7.3.10.0000.01316.57
7.3.00.0030.01016.67
7.2.330.0090.00916.51
7.2.320.0140.00416.54
7.2.310.0030.01416.33
7.2.300.0080.00816.56
7.2.290.0060.01016.52
7.2.260.0060.00915.18
7.2.250.0000.01514.87
7.2.240.0030.00915.01
7.2.230.0040.00415.19
7.2.220.0000.00914.90
7.2.210.0000.01815.00
7.2.200.0060.01115.02
7.2.190.0070.00315.08
7.2.180.0030.00914.83
7.2.170.0060.00314.90
7.2.160.0030.01314.91
7.2.150.0000.01216.76
7.2.140.0060.00316.77
7.2.130.0030.01016.81
7.2.120.0090.00016.89
7.2.110.0030.01016.70
7.2.100.0100.00316.70
7.2.90.0070.01016.94
7.2.80.0030.00616.78
7.2.70.0070.01016.88
7.2.60.0060.01016.48
7.2.50.0090.00616.89
7.2.40.0060.00616.64
7.2.30.0030.01016.88
7.2.20.0070.00716.84
7.2.10.0080.00316.65
7.2.00.0030.01118.22
7.1.330.0030.01015.64
7.1.320.0060.00315.61
7.1.310.0030.01015.54
7.1.300.0040.00415.75
7.1.290.0000.01415.64
7.1.280.0040.00715.81
7.1.270.0060.00915.70
7.1.260.0030.00715.73
7.1.250.0030.01015.88
7.1.240.0040.00415.56
7.1.230.0070.00715.38
7.1.220.0030.00915.35
7.1.210.0090.00315.70
7.1.200.0070.00315.78
7.1.190.0060.00715.72
7.1.180.0100.00315.72
7.1.170.0030.00915.85
7.1.160.0070.00715.42
7.1.150.0070.01115.64
7.1.140.0100.00315.93
7.1.130.0040.00415.78
7.1.120.0070.01015.42
7.1.110.0060.00615.48
7.1.100.0070.00616.69
7.1.90.0030.00715.72
7.1.80.0070.00715.55
7.1.70.0130.00716.33
7.1.60.0120.00817.38
7.1.50.0070.01216.27
7.1.40.0030.00915.75
7.1.30.0030.01015.61
7.1.20.0060.00615.71
7.1.10.0080.00815.60
7.1.00.0050.04019.04
7.0.330.0000.01215.31
7.0.320.0060.00315.34
7.0.310.0000.01115.41
7.0.300.0040.00715.30
7.0.290.0130.00015.37
7.0.280.0060.00615.15
7.0.270.0000.00915.30
7.0.260.0000.01415.33
7.0.250.0070.00715.28
7.0.240.0070.00415.54
7.0.230.0000.01215.41
7.0.220.0060.00915.56
7.0.210.0100.00315.58
7.0.200.0270.00515.12
7.0.190.0000.01615.50
7.0.180.0060.00315.38
7.0.170.0040.00815.18
7.0.160.0060.00615.39
7.0.150.0070.00715.36
7.0.140.0090.00615.16
7.0.130.0090.00615.23
7.0.120.0060.01015.61
7.0.110.0030.01015.47
7.0.100.0080.00815.54
7.0.90.0060.00915.18
7.0.80.0030.00615.29
7.0.70.0110.00315.35
7.0.60.0090.04417.51
7.0.50.0100.02416.56
7.0.40.0070.03816.68
7.0.30.0110.04116.80
7.0.20.0180.02516.87
7.0.10.0210.03716.84
7.0.00.0050.02216.60
5.6.400.0030.00914.57
5.6.390.0030.00714.74
5.6.380.0080.00614.75
5.6.370.0000.01214.37
5.6.360.0000.01214.59
5.6.350.0100.00714.26
5.6.340.0100.00614.68
5.6.330.0030.01014.38
5.6.320.0100.00714.38
5.6.310.0070.01114.54
5.6.300.0100.00714.57
5.6.290.0060.00914.54
5.6.280.0030.02217.81
5.6.270.0060.01014.50
5.6.260.0090.00914.44
5.6.250.0060.01214.21
5.6.240.0090.00314.12
5.6.230.0060.00914.30
5.6.220.0100.00014.40
5.6.210.0030.03017.45
5.6.200.0070.02916.30
5.6.190.0070.02717.47
5.6.180.0180.03817.44
5.6.170.0200.02917.43
5.6.160.0030.04117.41
5.6.150.0100.04016.33
5.6.140.0030.02516.23
5.6.130.0100.04216.26
5.6.120.0080.03017.71
5.6.110.0050.02317.59
5.6.100.0070.02617.60
5.6.90.0120.04217.65
5.6.80.0020.03017.19
5.6.70.0180.03317.28
5.6.60.0080.01214.06
5.6.50.0040.01113.94
5.6.40.0030.01314.17
5.6.30.0040.00414.43
5.6.20.0070.01014.14
5.6.10.0040.00714.25
5.6.00.0040.00414.29
5.5.380.0130.00014.29
5.5.370.0070.00714.31
5.5.360.0100.00613.95
5.5.350.0200.04417.16
5.5.340.0120.03716.15
5.5.330.0080.02917.34
5.5.320.0090.02717.30
5.5.310.0280.03717.33
5.5.300.0050.02416.05
5.5.290.0030.03516.21
5.5.280.0030.02717.55
5.5.270.0050.04617.43
5.5.260.0080.03417.40
5.5.250.0040.04117.23
5.5.240.0070.04417.14
5.5.230.0070.00714.40
5.5.220.0040.00814.17
5.5.210.0070.00714.11
5.5.200.0040.01114.04
5.5.190.0040.00814.37
5.5.180.0000.01014.46
5.5.170.0000.00914.00
5.5.160.0070.00714.28
5.5.150.0040.00914.39
5.5.140.0090.00314.31
5.5.130.0030.01414.38
5.5.120.0080.00414.30
5.5.110.0030.00814.07
5.5.100.0060.00614.23
5.5.90.0000.01714.25
5.5.80.0000.01414.14
5.5.70.0040.00713.96
5.5.60.0000.00814.42
5.5.50.0060.00614.18
5.5.40.0090.00614.27
5.5.30.0100.00314.27
5.5.20.0030.01014.39
5.5.10.0030.00614.34
5.5.00.0000.01314.04
5.4.450.0080.03315.12
5.4.440.0100.03515.08
5.4.430.0140.02515.33
5.4.420.0190.02215.16
5.4.410.0170.02815.13
5.4.400.0140.02515.18
5.4.390.0120.03015.08
5.4.380.0080.02815.14
5.4.370.0120.03214.96
5.4.360.0100.02914.82
5.4.350.0130.02714.98
5.4.340.0100.03215.14
5.4.330.0060.00310.76
5.4.320.0120.02914.95
5.4.310.0140.02515.15
5.4.300.0160.02514.92
5.4.290.0120.02715.14
5.4.280.0150.03515.01
5.4.270.0110.02815.07
5.4.260.0070.03214.86
5.4.250.0200.02815.06
5.4.240.0100.03515.08
5.4.230.0130.03915.00
5.4.220.0100.03815.02
5.4.210.0080.03214.88
5.4.200.0090.02915.02
5.4.190.0150.03814.89
5.4.180.0180.02814.88
5.4.170.0060.03514.68
5.4.160.0200.03314.90
5.4.150.0130.03814.94
5.4.140.0130.02613.69
5.4.130.0070.03213.64
5.4.120.0050.03413.66
5.4.110.0100.02913.59
5.4.100.0130.02813.69
5.4.90.0130.02713.64
5.4.80.0180.03013.72
5.4.70.0130.02613.61
5.4.60.0050.03113.46
5.4.50.0060.03313.68
5.4.40.0200.02513.63
5.4.30.0120.02613.60
5.4.20.0120.02713.54
5.4.10.0110.03813.71
5.4.00.0100.03213.15

preferences:
46.71 ms | 400 KiB | 5 Q