3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set the Max Size recommended for cache files $max_size = apply_filters('autoptimize_filter_cachecheck_maxsize', 512 * 1024 * 1024)|1; $bytes = $stats[1]|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.0110.00418.43
8.3.50.0090.00617.82
8.3.40.0140.00018.84
8.3.30.0070.00718.48
8.3.20.0040.00419.17
8.3.10.0040.00421.95
8.3.00.0040.00420.89
8.2.180.0080.00816.50
8.2.170.0090.00622.96
8.2.160.0070.00719.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00020.27
8.2.120.0000.00826.35
8.2.110.0040.00722.25
8.2.100.0060.00617.72
8.2.90.0050.00317.84
8.2.80.0040.00418.98
8.2.70.0040.00417.50
8.2.60.0050.00517.63
8.2.50.0000.00817.55
8.2.40.0050.00319.35
8.2.30.0000.00719.30
8.2.20.0040.00417.62
8.2.10.0040.00417.88
8.2.00.0040.00418.02
8.1.280.0090.00625.92
8.1.270.0040.00423.91
8.1.260.0070.00028.09
8.1.250.0050.00228.09
8.1.240.0030.00622.54
8.1.230.0070.00420.80
8.1.220.0000.00817.74
8.1.210.0070.00418.77
8.1.200.0000.00817.23
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0040.00417.62
8.1.160.0040.00418.95
8.1.150.0070.00018.69
8.1.140.0050.00219.45
8.1.130.0050.00217.46
8.1.120.0070.00017.33
8.1.110.0040.00717.31
8.1.100.0040.00417.34
8.1.90.0070.00017.38
8.1.80.0040.00417.37
8.1.70.0000.00717.27
8.1.60.0030.00617.47
8.1.50.0050.00217.43
8.1.40.0000.00917.36
8.1.30.0040.00417.66
8.1.20.0030.00617.57
8.1.10.0040.00417.57
8.1.00.0030.00617.34
8.0.300.0000.00720.16
8.0.290.0000.00816.75
8.0.280.0000.00718.39
8.0.270.0000.00717.20
8.0.260.0060.00317.21
8.0.250.0000.00816.88
8.0.240.0040.00417.02
8.0.230.0070.00017.02
8.0.220.0030.00416.91
8.0.210.0030.00316.88
8.0.200.0030.00316.91
8.0.190.0050.00317.02
8.0.180.0040.00416.98
8.0.170.0040.00416.96
8.0.160.0070.00016.89
8.0.150.0040.00416.87
8.0.140.0050.00316.89
8.0.130.0030.00313.28
8.0.120.0040.00416.88
8.0.110.0000.00716.75
8.0.100.0080.00016.73
8.0.90.0040.00316.93
8.0.80.0090.00616.91
8.0.70.0000.00716.72
8.0.60.0000.00816.79
8.0.50.0040.00416.94
8.0.30.0110.01217.12
8.0.20.0170.00317.40
8.0.10.0040.00416.75
8.0.00.0090.00916.77
7.4.330.0050.00016.67
7.4.320.0070.00216.24
7.4.300.0000.00616.56
7.4.290.0070.00016.42
7.4.280.0000.00816.53
7.4.270.0070.00016.38
7.4.260.0030.00316.44
7.4.250.0030.00316.36
7.4.240.0030.00316.45
7.4.230.0000.00716.57
7.4.220.0060.01816.61
7.4.210.0060.00916.64
7.4.200.0040.00416.64
7.4.160.0090.00616.71
7.4.150.0190.00617.40
7.4.140.0030.01417.86
7.4.130.0060.01116.46
7.4.120.0150.00216.52
7.4.110.0130.00316.59
7.4.100.0170.00716.59
7.4.90.0130.00616.43
7.4.80.0130.01019.39
7.4.70.0090.00916.53
7.4.60.0100.00716.60
7.4.50.0060.00916.55
7.4.40.0070.01016.63
7.4.30.0100.00716.36
7.4.00.0040.01115.18
7.3.330.0030.00313.16
7.3.320.0050.00013.06
7.3.310.0070.00016.13
7.3.300.0000.00716.26
7.3.290.0060.01016.24
7.3.280.0100.00716.26
7.3.270.0040.01317.40
7.3.260.0100.00716.34
7.3.250.0160.00516.40
7.3.240.0130.00516.48
7.3.230.0040.01216.39
7.3.210.0160.00316.43
7.3.200.0120.00416.45
7.3.190.0080.00816.34
7.3.180.0060.01416.18
7.3.170.0130.00416.44
7.3.160.0070.01716.21
7.3.10.0030.00616.74
7.3.00.0060.00916.64
7.2.330.0110.00616.54
7.2.320.0090.00916.59
7.2.310.0070.01016.55
7.2.300.0060.01216.24
7.2.290.0070.01016.39
7.2.130.0040.00816.76
7.2.120.0070.00716.75
7.2.110.0080.00316.54
7.2.100.0060.01216.56
7.2.90.0030.01316.66
7.2.80.0160.00316.76
7.2.70.0060.00616.56
7.2.60.0020.01416.44
7.2.50.0060.00916.86
7.2.40.0060.00916.81
7.2.30.0060.00916.81
7.2.20.0100.00616.71
7.2.10.0000.01716.80
7.2.00.0060.00818.02
7.1.250.0090.00615.67
7.1.200.0060.00615.50
7.1.70.0030.00516.74
7.1.60.0160.00316.89
7.1.50.0130.00716.93
7.1.00.0070.07322.40
7.0.200.0000.00716.73
7.0.70.1330.05319.92
7.0.60.1670.04020.09
7.0.50.1430.06020.48
7.0.40.1200.06020.46
7.0.30.1300.06320.38
7.0.20.1430.06320.44
7.0.10.1270.06020.29
7.0.00.1570.07020.41
5.6.280.0070.07021.14
5.6.220.1200.06720.49
5.6.210.1270.05020.64
5.6.200.1330.04721.18
5.6.190.1130.05021.16
5.6.180.1270.06321.13
5.6.170.1300.06020.98
5.6.160.1530.06321.11
5.6.150.1230.05021.02
5.6.140.1000.06021.07
5.6.130.1100.05321.09
5.6.120.0170.05321.09
5.6.110.0500.05721.06
5.6.100.1200.05721.13
5.6.90.1630.07021.05
5.6.80.1500.06020.40
5.6.70.1500.04720.36
5.6.60.1170.07020.51
5.6.50.1230.05320.48
5.6.40.1100.05020.38
5.6.30.1030.05320.52
5.6.20.1030.05320.37
5.6.10.1330.05020.45
5.6.00.1130.04720.41
5.5.360.0800.06020.47
5.5.350.1330.05720.46
5.5.340.1030.06020.88
5.5.330.1130.04720.96
5.5.320.1300.05320.82
5.5.310.1400.05720.81
5.5.300.1270.05020.91
5.5.290.1130.05320.94
5.5.280.0100.06020.95
5.5.270.1000.06320.91
5.5.260.1000.06720.95
5.5.250.1500.06020.61
5.5.240.1100.05320.27
5.5.230.1300.05020.32
5.5.220.1030.05720.36
5.5.210.1170.06020.22
5.5.200.1070.04720.14
5.5.190.1030.05720.12
5.5.180.1030.06020.27
5.5.160.1030.05720.29
5.5.150.1130.04320.20
5.5.140.1400.04320.17
5.5.130.1100.05020.14
5.5.120.1370.08020.20
5.5.110.1330.05720.27
5.5.100.1130.05720.01
5.5.90.0800.05020.21
5.5.80.0230.06020.23
5.5.70.0430.04320.08
5.5.60.1100.06020.02
5.5.50.1330.07320.11
5.5.40.1070.05020.03
5.5.30.1200.06320.02
5.5.20.1170.06019.99
5.5.10.1270.06319.97
5.5.00.1030.06320.12

preferences:
59.56 ms | 401 KiB | 5 Q