3v4l.org

run code in 300+ PHP versions simultaneously
<?php $million = 1_000_000; $billion = 1_000_000_000; $small = 0.000_000_000_12;

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.140.0040.01117.24
8.3.130.0070.01118.32
8.3.120.0110.00720.76
8.3.110.0040.00820.94
8.3.100.0040.00724.06
8.3.90.0040.00426.77
8.3.80.0100.00019.36
8.3.70.0160.00616.75
8.3.60.0120.00318.43
8.3.50.0100.00823.60
8.3.40.0150.00018.61
8.3.30.0040.01218.42
8.3.20.0040.00420.70
8.3.10.0040.00421.81
8.3.00.0080.00021.57
8.2.250.0040.00418.35
8.2.240.0060.00316.95
8.2.230.0070.00022.58
8.2.220.0100.00737.54
8.2.210.0000.00726.77
8.2.200.0060.00318.88
8.2.190.0070.01116.58
8.2.180.0100.01018.12
8.2.170.0170.00318.87
8.2.160.0100.00721.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00320.80
8.2.110.0040.00420.97
8.2.100.0040.00717.78
8.2.90.0040.00417.50
8.2.80.0030.00618.80
8.2.70.0040.00417.93
8.2.60.0080.00018.09
8.2.50.0040.00418.10
8.2.40.0030.00521.05
8.2.30.0000.00719.09
8.2.20.0000.00717.85
8.2.10.0040.00419.05
8.2.00.0000.00819.09
8.1.300.0040.01119.95
8.1.290.0090.00030.84
8.1.280.0080.00825.92
8.1.270.0090.00023.78
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.00019.09
8.1.230.0100.00020.91
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00917.10
8.1.180.0000.00819.01
8.1.170.0050.00818.22
8.1.160.0000.00718.90
8.1.150.0070.00019.03
8.1.140.0040.00420.56
8.1.130.0030.00320.12
8.1.120.0040.00417.42
8.1.110.0000.00917.38
8.1.100.0040.00417.29
8.1.90.0030.00317.43
8.1.80.0040.00417.33
8.1.70.0040.00417.34
8.1.60.0040.00417.40
8.1.50.0000.00817.33
8.1.40.0050.00317.40
8.1.30.0000.00817.47
8.1.20.0040.00417.50
8.1.10.0000.00817.41
8.1.00.0040.00417.30
8.0.300.0060.00318.77
8.0.290.0090.00016.61
8.0.280.0000.00718.36
8.0.270.0040.00416.76
8.0.260.0030.00319.87
8.0.250.0000.00616.89
8.0.240.0060.00316.92
8.0.230.0030.00316.83
8.0.220.0040.00416.85
8.0.210.0000.00716.74
8.0.200.0030.00316.82
8.0.190.0040.00416.79
8.0.180.0040.00416.85
8.0.170.0030.00616.84
8.0.160.0070.00016.82
8.0.150.0000.00716.62
8.0.140.0000.01016.77
8.0.130.0030.00313.33
8.0.120.0050.00216.66
8.0.110.0040.00416.60
8.0.100.0030.00516.79
8.0.90.0030.00616.71
8.0.80.0000.01516.90
8.0.70.0060.00316.80
8.0.60.0040.00416.75
8.0.50.0030.00516.74
8.0.30.0070.01017.05
8.0.20.0070.01116.87
8.0.10.0040.00416.75
8.0.00.0090.00916.89
7.4.330.0000.00516.80
7.4.320.0000.00616.43
7.4.300.0030.00316.34
7.4.290.0000.00716.48
7.4.280.0000.00816.40
7.4.270.0000.00816.57
7.4.260.0030.00316.50
7.4.250.0040.00416.30
7.4.240.0020.00516.36
7.4.230.0030.00316.33
7.4.220.0050.00216.52
7.4.210.0060.01016.54
7.4.200.0070.00016.37
7.4.130.0040.01816.31
7.4.120.0090.01116.47
7.4.110.0060.01316.31
7.4.100.0080.00916.60
7.4.90.0100.00716.42
7.4.80.0100.00719.39
7.4.70.0110.00716.21
7.4.60.0110.00416.31
7.4.50.0080.00216.16
7.4.40.0080.00816.41
7.4.10.0090.00916.30
7.4.00.0090.00816.28
7.3.330.0030.00616.02
7.3.320.0000.00613.23
7.3.310.0040.00416.32
7.3.300.0030.00316.21
7.3.290.0090.01016.15
7.3.280.0120.00316.13
7.3.260.0090.01316.41
7.3.240.0100.00616.20
7.3.230.0100.01016.10
7.3.210.0120.00616.25
7.3.200.0050.01116.20
7.3.190.0160.00016.23
7.3.180.0120.00816.19
7.3.170.0160.00016.30
7.3.160.0080.00816.23
7.3.130.0100.00916.14
7.3.120.0090.00916.17
7.3.110.0080.01016.17
7.3.100.0080.01016.13
7.3.90.0090.00816.20
7.3.80.0090.00916.18
7.3.70.0100.00716.13
7.3.60.0090.00816.12
7.3.50.0080.00916.09
7.3.40.0100.00816.13
7.3.30.0090.00816.12
7.3.20.0100.00816.33
7.3.10.0090.01016.29
7.3.00.0110.00916.34
7.2.330.0120.00616.25
7.2.320.0140.00316.42
7.2.310.0090.00616.20
7.2.300.0080.01216.52
7.2.290.0070.01416.18
7.2.260.0090.00916.31
7.2.250.0090.00916.28
7.2.240.0080.01016.27
7.2.230.0080.00916.23
7.2.220.0090.01016.23
7.2.210.0090.00916.29
7.2.200.0100.00816.28
7.2.190.0110.00716.23
7.2.180.0100.00916.23
7.2.170.0100.00816.25
7.2.160.0090.00916.19
7.2.150.0110.00716.47
7.2.140.0090.00916.52
7.2.130.0110.00816.49
7.2.120.0100.00916.45
7.2.110.0100.01016.46
7.2.100.0100.00916.48
7.2.90.0110.00916.46
7.2.80.0110.00816.44
7.2.70.0100.00816.51
7.2.60.0080.01016.45
7.2.50.0080.01016.46
7.2.40.0080.01016.49
7.2.30.0110.00816.53
7.2.20.0090.00916.46
7.2.10.0090.01016.42
7.2.00.0090.00816.42
7.1.330.0100.00915.18
7.1.320.0090.00915.15
7.1.310.0090.00915.21
7.1.300.0040.01515.24
7.1.290.0180.00515.19
7.1.280.0170.00814.99
7.1.270.0060.01015.24
7.1.260.0090.00915.19
7.1.250.0110.01314.96
7.1.240.0130.00714.96
7.1.230.0080.01015.15
7.1.220.0130.00815.20
7.1.210.0090.00815.05
7.1.200.0090.00915.08
7.1.190.0100.01015.13
7.1.180.0090.00815.16
7.1.170.0110.00615.21
7.1.160.0080.00815.12
7.1.150.0120.00714.96
7.1.140.0140.01314.95
7.1.130.0120.00815.09
7.1.120.0100.00715.09
7.1.110.0090.01115.18
7.1.100.0070.00915.22
7.1.90.0110.00815.13
7.1.80.0070.00815.20
7.1.70.0090.00715.24
7.1.60.0110.00915.14
7.1.50.0110.00615.16
7.1.40.0110.00915.06
7.1.30.0130.00515.29
7.1.20.0090.00715.09
7.1.10.0070.00815.23
7.1.00.0080.00815.06
7.0.330.0150.00314.86
7.0.320.0080.00914.76
7.0.310.0160.00114.70
7.0.300.0120.00814.79
7.0.290.0040.01214.78
7.0.280.0110.00614.91
7.0.270.0050.01214.83
7.0.260.0090.00614.66
7.0.250.0120.00715.02
7.0.240.0060.01014.93
7.0.230.0140.00415.10
7.0.220.0110.00615.04
7.0.210.0130.01014.93
7.0.200.0090.00814.88
7.0.190.0120.00714.88
7.0.180.0120.00514.87
7.0.170.0130.00414.76
7.0.160.0120.00314.93
7.0.150.0100.00614.93
7.0.140.0080.00814.82
7.0.130.0130.00414.98
7.0.120.0060.01014.73
7.0.110.0080.01114.99
7.0.100.0130.00314.93
7.0.90.0100.00614.95
7.0.80.0090.00714.99
7.0.70.0070.00914.93
7.0.60.0060.01114.90
7.0.50.0070.00914.92
7.0.40.0080.00914.89
7.0.30.0160.00314.98
7.0.20.0060.01014.99
7.0.10.0060.00914.96
7.0.00.0120.00914.83
5.6.400.0090.01115.60
5.6.390.0070.01415.36
5.6.380.0080.01415.41
5.6.370.0090.00915.58
5.6.360.0080.01615.39
5.6.350.0080.01115.58
5.6.340.0080.01015.60
5.6.330.0060.01615.53
5.6.320.0070.01315.43
5.6.310.0120.00915.48
5.6.300.0090.00715.37
5.6.290.0070.01515.54
5.6.280.0070.01215.45
5.6.270.0110.00815.63
5.6.260.0070.01115.70
5.6.250.0110.00915.58
5.6.240.0100.01015.48
5.6.230.0110.00915.24
5.6.220.0090.01015.62
5.6.210.0070.01115.46
5.6.200.0060.01215.64
5.6.190.0040.01315.36
5.6.180.0070.01415.71
5.6.170.0070.01215.54
5.6.160.0120.00915.55
5.6.150.0080.01215.48
5.6.140.0100.00915.59
5.6.130.0080.01315.33
5.6.120.0080.01015.55
5.6.110.0080.01115.61
5.6.100.0040.01415.64
5.6.90.0100.00915.67
5.6.80.0110.00615.33
5.6.70.0130.00615.66
5.6.60.0130.00815.45
5.6.50.0120.00715.51
5.6.40.0090.00815.56
5.6.30.0140.00515.45
5.6.20.0050.01415.46
5.6.10.0100.01015.45
5.6.00.0080.00815.58
5.5.380.0070.01115.36
5.5.370.0090.01115.72
5.5.360.0130.00515.49
5.5.350.0060.01415.51
5.5.340.0110.00815.59
5.5.330.0060.01215.48
5.5.320.0100.00815.39
5.5.310.0060.01215.42
5.5.300.0150.00315.54
5.5.290.0140.00615.51
5.5.280.0120.00715.26
5.5.270.0080.01115.57
5.5.260.0070.01115.48
5.5.250.0080.01015.49
5.5.240.0060.01315.25
5.5.230.0010.01615.41
5.5.220.0070.01315.40
5.5.210.0070.00915.35
5.5.200.0080.01015.29
5.5.190.0060.01215.34
5.5.180.0090.00915.49
5.5.170.0050.01115.08
5.5.160.0070.01215.44
5.5.150.0110.00915.31
5.5.140.0120.00715.36
5.5.130.0040.01215.43
5.5.120.0070.01015.43
5.5.110.0070.01315.40
5.5.100.0090.00915.44
5.5.90.0100.01215.49
5.5.80.0060.01115.52
5.5.70.0070.01215.24
5.5.60.0060.01315.43
5.5.50.0130.00615.51
5.5.40.0110.00915.46
5.5.30.0060.01115.44
5.5.20.0090.01015.14
5.5.10.0050.01415.38
5.5.00.0090.00915.53
5.4.450.0050.00912.29
5.4.440.0050.00812.27
5.4.430.0060.00712.46
5.4.420.0050.00812.26
5.4.410.0070.00612.27
5.4.400.0020.01112.15
5.4.390.0070.00612.27
5.4.380.0070.00512.12
5.4.370.0080.00812.18
5.4.360.0050.00712.21
5.4.350.0100.00412.21
5.4.340.0060.00912.13
5.4.330.0060.00612.29
5.4.320.0050.01012.19
5.4.310.0020.01212.06
5.4.300.0080.00412.36
5.4.290.0060.00612.15
5.4.280.0050.00912.30
5.4.270.0050.00912.09
5.4.260.0060.00612.23
5.4.250.0050.01112.26
5.4.240.0050.00812.23
5.4.230.0080.00512.37
5.4.220.0050.00812.22
5.4.210.0060.00712.21
5.4.200.0050.00912.16
5.4.190.0060.01012.14
5.4.180.0050.00812.27
5.4.170.0070.00712.20
5.4.160.0080.00612.18
5.4.150.0060.01012.21
5.4.140.0070.00512.35
5.4.130.0080.00512.37
5.4.120.0060.00912.36
5.4.110.0050.00912.26
5.4.100.0150.00312.40
5.4.90.0090.00512.21
5.4.80.0030.01112.34
5.4.70.0000.01412.36
5.4.60.0080.00812.32
5.4.50.0070.00512.28
5.4.40.0060.00812.23
5.4.30.0060.00712.27
5.4.20.0070.00612.32
5.4.10.0020.01212.24
5.4.00.0070.00912.36
5.3.290.0110.01012.86
5.3.280.0070.01012.62
5.3.270.0110.00612.78
5.3.260.0090.00712.68
5.3.250.0050.00912.73
5.3.240.0000.01312.61
5.3.230.0060.00812.67
5.3.220.0060.00712.63
5.3.210.0090.00612.81
5.3.200.0120.00512.66
5.3.190.0070.00912.68
5.3.180.0050.00912.86
5.3.170.0040.01012.82
5.3.160.0050.01012.76
5.3.150.0090.00512.83
5.3.140.0110.00412.91
5.3.130.0050.00812.77
5.3.120.0050.00812.73
5.3.110.0030.01212.69
5.3.100.0040.01112.68
5.3.90.0100.00612.79
5.3.80.0050.01212.72
5.3.70.0070.00712.67
5.3.60.0080.00812.72
5.3.50.0060.01012.64
5.3.40.0040.00912.75
5.3.30.0050.01012.67
5.3.20.0040.01012.69
5.3.10.0070.01012.46
5.3.00.0070.00812.45
5.2.170.0060.00711.83
5.2.160.0080.00511.83
5.2.150.0060.00811.83
5.2.140.0030.01011.83
5.2.130.0050.00811.83
5.2.120.0070.00911.83
5.2.110.0060.00711.83
5.2.100.0070.00611.83
5.2.90.0060.00811.83
5.2.80.0040.00911.83
5.2.70.0030.00911.83
5.2.60.0060.00811.83
5.2.50.0080.00311.83
5.2.40.0020.01011.83
5.2.30.0080.01011.83
5.2.20.0040.00811.83
5.2.10.0060.00611.83
5.2.00.0060.00511.83
5.1.60.0040.00911.83
5.1.50.0070.00711.83
5.1.40.0070.00611.83
5.1.30.0030.01011.83
5.1.20.0070.00511.83
5.1.10.0070.00311.83
5.1.00.0070.00411.83
5.0.50.0060.00611.83
5.0.40.0060.00411.83
5.0.30.0080.00311.83
5.0.20.0060.00311.83
5.0.10.0020.01011.83
5.0.00.0060.00411.83
4.4.90.0030.00311.83
4.4.80.0030.00411.83
4.4.70.0030.00311.83
4.4.60.0000.00611.83
4.4.50.0040.00111.83
4.4.40.0040.00311.83
4.4.30.0020.00511.83
4.4.20.0010.00511.83
4.4.10.0030.00311.83
4.4.00.0050.00211.83
4.3.110.0050.00211.83
4.3.100.0010.00411.83
4.3.90.0000.00611.83
4.3.80.0030.00311.83
4.3.70.0010.00411.83
4.3.60.0050.00111.83
4.3.50.0050.00111.83
4.3.40.0000.00711.83
4.3.30.0020.00411.83
4.3.20.0040.00311.83
4.3.10.0050.00211.83
4.3.00.0010.00511.83

preferences:
82.27 ms | 403 KiB | 5 Q