3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bytes = 0|1; // Set the first commons International System of Units (SI) bytes Prefix $si_prefix = array( 'B', 'KB', 'MB', 'GB' ); $class = min( (int) log( $bytes , 1024 ), count( $si_prefix ) - 1 ); // We format the total bytes of cache as appropriate, either in B, KB, MB or GB $size = sprintf( '%1.2f', $bytes / pow( 1024, $class ) ) . ' ' . $si_prefix[ $class ]; // We calculated the percentage of cache used $percentage = ceil( $bytes / $max_size * 100 ); var_dump($class, $size, $percentage);

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.80
8.3.50.0120.00322.17
8.3.40.0090.00618.77
8.3.30.0120.00318.88
8.3.20.0080.00019.41
8.3.10.0040.00422.04
8.3.00.0080.00021.14
8.2.180.0040.01116.72
8.2.170.0120.00922.96
8.2.160.0140.00719.07
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.13
8.2.110.0040.00422.54
8.2.100.0040.00819.83
8.2.90.0060.00317.88
8.2.80.0030.00618.98
8.2.70.0080.00017.88
8.2.60.0030.00618.28
8.2.50.0040.00418.07
8.2.40.0040.00418.35
8.2.30.0080.00018.22
8.2.20.0000.00717.93
8.2.10.0050.00218.36
8.2.00.0040.00418.21
8.1.280.0090.00925.92
8.1.270.0040.00424.00
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.91
8.1.230.0090.00617.96
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0070.00317.47
8.1.190.0070.00319.26
8.1.180.0090.00018.10
8.1.170.0050.00318.76
8.1.160.0060.00319.19
8.1.150.0040.00418.95
8.1.140.0000.00719.78
8.1.130.0070.00017.89
8.1.120.0040.00417.56
8.1.110.0030.00717.62
8.1.100.0070.00017.66
8.1.90.0000.00717.68
8.1.80.0040.00417.57
8.1.70.0060.00317.54
8.1.60.0030.00617.76
8.1.50.0000.00917.53
8.1.40.0050.00317.68
8.1.30.0040.00417.86
8.1.20.0000.00817.75
8.1.10.0000.00817.74
8.1.00.0000.00817.59
8.0.300.0060.00318.77
8.0.290.0030.00617.00
8.0.280.0030.00318.66
8.0.270.0000.00717.44
8.0.260.0030.00517.37
8.0.250.0000.00817.16
8.0.240.0070.00017.20
8.0.230.0040.00317.10
8.0.220.0050.00317.13
8.0.210.0000.00717.09
8.0.200.0000.00717.05
8.0.190.0030.00617.22
8.0.180.0060.00317.22
8.0.170.0040.00417.14
8.0.160.0060.00317.05
8.0.150.0040.00417.15
8.0.140.0040.00417.05
8.0.130.0060.00013.56
8.0.120.0040.00417.17
8.0.110.0040.00417.03
8.0.100.0000.00717.01
8.0.90.0000.00717.09
8.0.80.0090.00916.93
8.0.70.0000.00717.02
8.0.60.0020.00516.98
8.0.50.0000.00717.20
8.0.30.0080.01217.13
8.0.20.0110.00817.43
8.0.10.0000.00717.04
8.0.00.0120.00616.78
7.4.330.0050.00016.93
7.4.320.0060.00016.69
7.4.300.0060.00016.67
7.4.290.0030.00316.68
7.4.280.0040.00416.67
7.4.270.0040.00416.75
7.4.260.0040.00416.57
7.4.250.0000.00716.65
7.4.240.0000.00716.68
7.4.230.0030.00316.89
7.4.220.0150.00616.79
7.4.210.0070.00716.82
7.4.200.0030.00316.69
7.4.160.0100.00716.69
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0130.00616.59
7.4.120.0100.00716.58
7.4.110.0070.01016.59
7.4.100.0160.00716.67
7.4.90.0100.00716.83
7.4.80.0090.01319.39
7.4.70.0160.00016.86
7.4.60.0090.00616.69
7.4.50.0030.01216.84
7.4.40.0000.01616.61
7.4.30.0110.01116.52
7.4.10.0090.00915.27
7.4.00.0060.01015.35
7.3.330.0000.00613.44
7.3.320.0000.00513.43
7.3.310.0000.00716.66
7.3.300.0030.00316.57
7.3.290.0100.00416.52
7.3.280.0050.01216.59
7.3.270.0030.01417.40
7.3.260.0140.00316.58
7.3.250.0120.01616.65
7.3.240.0090.01116.48
7.3.230.0120.00416.58
7.3.210.0070.01016.67
7.3.200.0060.00916.49
7.3.190.0130.00316.52
7.3.180.0060.01016.74
7.3.170.0090.00916.77
7.3.160.0070.01416.55
7.3.130.0070.01415.34
7.3.120.0040.01515.39
7.3.110.0100.01015.23
7.3.100.0000.01315.18
7.3.90.0060.01015.30
7.3.80.0080.00415.29
7.3.70.0000.01315.24
7.3.60.0070.00715.07
7.3.50.0030.01415.35
7.3.40.0080.00415.28
7.3.30.0000.00915.21
7.3.20.0040.01117.08
7.3.10.0070.00717.17
7.3.00.0030.01016.76
7.2.330.0040.01316.74
7.2.320.0130.01316.77
7.2.310.0060.01616.52
7.2.300.0130.01216.82
7.2.290.0060.01116.64
7.2.260.0060.01215.09
7.2.250.0070.01315.45
7.2.240.0070.01015.50
7.2.230.0030.01615.14
7.2.220.0060.01315.27
7.2.210.0070.00715.54
7.2.200.0060.00915.26
7.2.190.0070.00315.20
7.2.180.0120.00315.25
7.2.170.0070.01015.41
7.2.160.0100.00315.26
7.2.150.0040.01117.39
7.2.140.0090.00317.43
7.2.130.0030.00616.92
7.2.120.0040.00817.17
7.2.110.0060.00317.38
7.2.100.0060.00617.38
7.2.90.0120.00316.97
7.2.80.0000.01817.21
7.2.70.0070.00717.48
7.2.60.0080.00717.31
7.2.50.0030.01017.24
7.2.40.0070.01117.41
7.2.30.0030.00917.54
7.2.20.0040.01117.22
7.2.10.0070.00717.00
7.2.00.0050.01118.48
7.1.330.0090.00315.97
7.1.320.0060.00316.08
7.1.310.0000.01416.31
7.1.300.0060.01015.82
7.1.290.0060.00615.99
7.1.280.0000.01115.94
7.1.270.0060.00616.11
7.1.260.0070.01016.07
7.1.250.0000.01516.39
7.1.240.0070.00716.43
7.1.230.0070.00315.86
7.1.220.0040.00716.01
7.1.210.0060.01216.16
7.1.200.0070.00715.82
7.1.190.0000.01316.13
7.1.180.0030.00916.09
7.1.170.0040.00916.07
7.1.160.0040.00816.03
7.1.150.0090.00316.27
7.1.140.0060.00916.21
7.1.130.0040.01115.86
7.1.120.0000.01316.13
7.1.110.0080.00416.20
7.1.100.0020.00917.05
7.1.90.0060.00916.02
7.1.80.0090.00615.95
7.1.70.0040.00716.61
7.1.60.0090.00817.78
7.1.50.0080.01016.66
7.1.40.0130.00315.83
7.1.30.0030.00715.86
7.1.20.0100.00016.04
7.1.10.0000.01116.14
7.1.00.0030.04219.36
7.0.330.0040.00815.32
7.0.320.0070.00415.68
7.0.310.0090.00315.55
7.0.300.0000.01415.65
7.0.290.0000.01215.52
7.0.280.0040.00815.71
7.0.270.0030.00615.66
7.0.260.0030.01315.25
7.0.250.0100.00615.74
7.0.240.0000.00915.61
7.0.230.0070.00715.79
7.0.220.0030.00915.64
7.0.210.0110.00315.78
7.0.200.0050.00715.44
7.0.190.0000.00915.64
7.0.180.0100.00315.71
7.0.170.0080.00415.78
7.0.160.0060.00615.42
7.0.150.0030.01015.72
7.0.140.0060.00615.68
7.0.130.0090.00615.52
7.0.120.0030.01315.55
7.0.110.0030.01015.52
7.0.100.0000.01115.71
7.0.90.0080.00815.74
7.0.80.0070.00715.77
7.0.70.0670.02817.70
7.0.60.0620.03617.94
7.0.50.0640.03718.16
7.0.40.0670.02817.03
7.0.30.0690.03717.11
7.0.20.0710.03517.12
7.0.10.0730.02717.16
7.0.00.0600.03317.12
5.6.400.0000.01314.68
5.6.390.0070.00714.66
5.6.380.0090.00614.62
5.6.370.0000.01414.55
5.6.360.0100.00714.95
5.6.350.0060.00314.62
5.6.340.0100.00314.36
5.6.330.0040.00414.61
5.6.320.0040.00814.52
5.6.310.0030.01014.39
5.6.300.0040.01114.17
5.6.290.0040.00414.75
5.6.280.0070.04917.92
5.6.270.0080.00314.69
5.6.260.0000.01314.54
5.6.250.0070.00714.86
5.6.240.0080.00814.68
5.6.230.0070.00714.61
5.6.220.0570.03417.75
5.6.210.0580.03217.75
5.6.200.0560.03318.06
5.6.190.0500.03917.80
5.6.180.0700.02518.03
5.6.170.0680.03317.98
5.6.160.0580.02817.94
5.6.150.0670.04217.96
5.6.140.0680.03517.96
5.6.130.0680.03217.79
5.6.120.0080.03317.96
5.6.110.0250.03517.97
5.6.100.0520.03517.71
5.6.90.0570.02918.08
5.6.80.0690.02017.67
5.6.70.0550.02817.61
5.6.60.0600.02817.50
5.6.50.0550.04017.54
5.6.40.0610.03317.52
5.6.30.0590.02717.49
5.6.20.0610.02517.63
5.6.10.0550.03017.53
5.6.00.0500.03817.52
5.5.380.0070.00714.83
5.5.370.0120.00414.73
5.5.360.0500.03317.47
5.5.350.0570.03717.63
5.5.340.0670.02017.73
5.5.330.0570.03017.82
5.5.320.0580.03817.99
5.5.310.0810.03717.93
5.5.300.0700.02217.74
5.5.290.0550.03217.88
5.5.280.0120.03017.77
5.5.270.0500.04117.87
5.5.260.0530.03217.86
5.5.250.0580.03217.73
5.5.240.0520.03317.51
5.5.230.0660.02517.34
5.5.220.0520.03517.37
5.5.210.0700.02517.31
5.5.200.0650.03017.51
5.5.190.0530.03317.40
5.5.180.0580.03517.39
5.5.170.0090.00314.87
5.5.160.0520.03317.41
5.5.150.0510.03317.46
5.5.140.0540.03217.53
5.5.130.0530.03517.62
5.5.120.0500.03217.62
5.5.110.0500.03517.47
5.5.100.0530.03517.13
5.5.90.0530.03017.51
5.5.80.0630.03717.50
5.5.70.0580.03017.34
5.5.60.0630.03317.28
5.5.50.0630.03017.22
5.5.40.0610.03417.37
5.5.30.0500.03517.45
5.5.20.0600.02817.20
5.5.10.0530.03017.08
5.5.00.0320.03017.24

preferences:
61.75 ms | 401 KiB | 5 Q