3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recentlyViewed = $products = range(1,10); echo '$recentlyViewed =>'; print_R($recentlyViewed); echo '$products =>'; print_R($products); $products = range(1,10); $recentlyViewed = ($products) ? true : false; echo '$products =>'; print_R($products); print_R('$recentlyViewed =>'.$recentlyViewed);

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.70.0070.01116.63
8.3.60.0150.00316.63
8.3.50.0090.00821.93
8.3.40.0070.01018.84
8.3.30.0110.00318.50
8.3.20.0080.00020.35
8.3.10.0030.00623.59
8.3.00.0000.00819.97
8.2.190.0140.00718.41
8.2.180.0120.00316.75
8.2.170.0150.00022.96
8.2.160.0180.00020.34
8.2.150.0090.00025.66
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0080.00021.05
8.2.110.0090.00022.20
8.2.100.0040.00819.95
8.2.90.0090.00017.63
8.2.80.0080.00020.50
8.2.70.0090.00317.50
8.2.60.0050.00317.63
8.2.50.0000.01019.35
8.2.40.0080.00019.78
8.2.30.0080.00320.59
8.2.20.0000.00717.65
8.2.10.0080.00018.13
8.2.00.0040.00417.99
8.1.280.0130.00625.92
8.1.270.0070.01120.07
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00523.86
8.1.230.0070.00319.10
8.1.220.0000.00917.78
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0030.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0070.00020.72
8.1.150.0040.00418.83
8.1.140.0040.00419.52
8.1.130.0030.00320.24
8.1.120.0000.00717.44
8.1.110.0040.00417.39
8.1.100.0000.00717.30
8.1.90.0040.00417.30
8.1.80.0000.00717.35
8.1.70.0000.00717.36
8.1.60.0000.00717.52
8.1.50.0040.00417.47
8.1.40.0050.00317.46
8.1.30.0050.00517.56
8.1.20.0000.00717.56
8.1.10.0040.00417.51
8.1.00.0030.00517.41
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0000.00716.81
8.0.260.0030.00318.38
8.0.250.0000.00716.86
8.0.240.0070.00016.95
8.0.230.0030.00317.00
8.0.220.0030.00516.86
8.0.210.0030.00316.90
8.0.200.0070.00016.92
8.0.190.0040.00416.91
8.0.180.0040.00416.86
8.0.170.0030.00516.96
8.0.160.0000.00816.90
8.0.150.0000.00716.88
8.0.140.0030.00316.81
8.0.130.0000.00513.32
8.0.120.0060.00316.77
8.0.110.0000.00716.80
8.0.100.0040.00416.94
8.0.90.0040.00416.72
8.0.80.0120.00916.75
8.0.70.0040.00416.81
8.0.60.0040.00416.80
8.0.50.0070.00016.80
8.0.30.0110.00716.86
8.0.20.0120.00717.40
8.0.10.0030.00416.99
8.0.00.0120.00516.75
7.4.330.0020.00216.83
7.4.320.0000.00716.47
7.4.300.0030.00316.49
7.4.290.0000.00716.46
7.4.280.0080.00016.59
7.4.270.0000.00716.47
7.4.260.0000.00816.55
7.4.250.0050.00216.48
7.4.240.0020.00516.48
7.4.230.0070.00016.43
7.4.220.0150.01216.57
7.4.210.0090.00416.49
7.4.200.0000.00816.30
7.4.160.0060.00916.40
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0120.00916.39
7.4.120.0050.01216.56
7.4.110.0100.00716.40
7.4.100.0130.01316.53
7.4.90.0060.00916.49
7.4.80.0130.00319.39
7.4.70.0100.00716.41
7.4.60.0100.00716.35
7.4.50.0080.00616.22
7.4.40.0090.01216.45
7.4.30.0120.00916.64
7.4.00.0060.01014.79
7.3.330.0030.00313.07
7.3.320.0000.00513.04
7.3.310.0000.00916.20
7.3.300.0030.00316.04
7.3.290.0090.00916.19
7.3.280.0080.00816.23
7.3.270.0100.00717.40
7.3.260.0130.00316.36
7.3.250.0080.01216.25
7.3.240.0070.01016.32
7.3.230.0000.01716.39
7.3.210.0060.01016.21
7.3.200.0170.00316.51
7.3.190.0090.00916.55
7.3.180.0130.01016.25
7.3.170.0100.00716.39
7.3.160.0210.00016.36
7.3.10.0080.00416.37
7.3.00.0030.00716.52
7.2.330.0160.00916.66
7.2.320.0110.01416.65
7.2.310.0030.01316.61
7.2.300.0060.00916.69
7.2.290.0140.00316.43
7.2.130.0030.00916.90
7.2.120.0070.00416.97
7.2.110.0070.00716.86
7.2.100.0040.01116.88
7.2.90.0070.01316.95
7.2.80.0030.00616.83
7.2.70.0040.01217.14
7.2.60.0100.00216.91
7.2.50.0090.00616.86
7.2.40.0060.00616.79
7.2.30.0000.01117.04
7.2.20.0090.00616.91
7.2.10.0060.00616.93
7.2.00.0040.00816.86
7.1.250.0070.00315.59
7.1.200.0040.00815.70
7.1.70.0000.01117.07
7.1.60.0210.00319.13
7.1.50.0030.01316.91
7.1.00.0100.07022.54
7.0.200.0040.00416.50
7.0.60.0170.05319.91
7.0.50.0070.08017.87
7.0.40.0030.04320.42
7.0.30.0330.07020.09
7.0.20.0370.07020.23
7.0.10.0100.07320.23
7.0.00.0100.04720.10
5.6.280.0070.05720.86
5.6.210.0030.04020.70
5.6.200.0100.08018.21
5.6.190.0130.04320.77
5.6.180.0100.08320.47
5.6.170.0200.03720.71
5.6.160.0070.08720.43
5.6.150.0100.08318.18
5.6.140.0070.07318.16
5.6.130.0070.08318.15
5.6.120.0070.04020.98
5.6.110.0070.05721.01
5.6.100.0070.07320.99
5.6.90.0070.03720.98
5.6.80.0170.07020.48
5.5.350.0300.07020.38
5.5.340.0030.04318.03
5.5.330.0030.09020.29
5.5.320.0400.05320.23
5.5.310.0270.07020.29
5.5.300.0100.07717.97
5.5.290.0030.05718.01
5.5.280.0000.09720.68
5.5.270.0000.05020.72
5.5.260.0000.05020.97
5.5.250.0030.08020.57
5.5.240.0100.03720.11

preferences:
32.31 ms | 404 KiB | 6 Q