3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(4,17); print_r( array_filter($a, function($x){ return strpos( (string)$x, '5' ) !== false; }) ); // $x = 5; // echo strpos((string)$x, '5') !== false;

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.0060.01018.30
8.3.50.0110.00717.99
8.3.40.0120.00418.58
8.3.30.0090.00618.58
8.3.20.0060.00320.20
8.3.10.0000.00823.53
8.3.00.0080.00019.56
8.2.180.0140.00318.32
8.2.170.0040.01122.96
8.2.160.0140.00320.53
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00021.11
8.2.120.0050.00226.35
8.2.110.0030.00620.35
8.2.100.0090.00419.30
8.2.90.0030.00517.84
8.2.80.0030.00520.48
8.2.70.0040.00417.79
8.2.60.0050.00318.04
8.2.50.0040.00418.16
8.2.40.0040.00420.48
8.2.30.0030.00619.27
8.2.20.0060.00318.04
8.2.10.0050.00218.05
8.2.00.0040.00418.25
8.1.280.0140.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00926.35
8.1.250.0050.00228.09
8.1.240.0060.01023.83
8.1.230.0040.00720.96
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00517.35
8.1.190.0080.00017.41
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00418.93
8.1.150.0000.00820.26
8.1.140.0070.00017.66
8.1.130.0040.00419.05
8.1.120.0000.00717.47
8.1.110.0040.00417.46
8.1.100.0040.00417.47
8.1.90.0040.00417.38
8.1.80.0040.00417.48
8.1.70.0030.00617.34
8.1.60.0040.00417.59
8.1.50.0030.00517.53
8.1.40.0000.00917.54
8.1.30.0000.00817.54
8.1.20.0050.00217.63
8.1.10.0040.00417.32
8.1.00.0060.00317.24
8.0.300.0030.00520.04
8.0.290.0030.00516.58
8.0.280.0000.00718.39
8.0.270.0030.00317.18
8.0.260.0000.00716.76
8.0.250.0030.00716.91
8.0.240.0000.00916.79
8.0.230.0050.00316.89
8.0.220.0000.00716.70
8.0.210.0090.00016.80
8.0.200.0070.00016.91
8.0.190.0000.00816.94
8.0.180.0040.00416.95
8.0.170.0040.00416.91
8.0.160.0050.00316.93
8.0.150.0030.00316.83
8.0.140.0070.00016.74
8.0.130.0000.00713.32
8.0.120.0050.00316.75
8.0.110.0030.00616.96
8.0.100.0070.00016.80
8.0.90.0070.00016.83
8.0.80.0090.00616.81
8.0.70.0040.00416.90
8.0.60.0050.00316.96
8.0.50.0000.00716.76
8.0.30.0140.00417.09
8.0.20.0080.01117.40
8.0.10.0040.00417.13
8.0.00.0110.00816.64
7.4.330.0000.00515.55
7.4.320.0030.00316.53
7.4.300.0000.00616.42
7.4.290.0000.00716.60
7.4.280.0080.00016.52
7.4.270.0030.00316.61
7.4.260.0080.00016.55
7.4.250.0000.00716.42
7.4.240.0070.00016.40
7.4.230.0030.00316.45
7.4.220.0040.00416.38
7.4.210.0060.00916.58
7.4.200.0000.00716.42
7.4.160.0110.00516.50
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0080.00916.36
7.4.120.0100.00816.52
7.4.110.0130.00316.73
7.4.100.0130.00916.44
7.4.90.0030.01316.27
7.4.80.0140.00519.39
7.4.70.0070.01016.49
7.4.60.0100.00616.55
7.4.50.0030.01016.60
7.4.40.0110.00616.18
7.4.00.0090.00715.00
7.3.330.0000.00513.13
7.3.320.0000.00613.30
7.3.310.0070.00016.26
7.3.300.0030.00316.21
7.3.290.0030.01116.30
7.3.280.0090.00816.32
7.3.270.0060.01217.40
7.3.260.0080.01116.31
7.3.250.0100.00716.21
7.3.240.0100.00716.53
7.3.230.0070.01016.29
7.3.210.0030.01316.38
7.3.200.0060.01016.34
7.3.190.0030.01316.39
7.3.180.0040.01216.54
7.3.170.0030.01316.33
7.3.160.0060.00916.60
7.3.120.0090.00615.07
7.3.110.0070.01114.78
7.3.100.0030.01014.95
7.3.90.0100.00014.75
7.3.80.0030.00614.82
7.3.70.0090.00014.72
7.3.60.0030.00614.70
7.3.50.0150.00014.71
7.3.40.0040.00414.65
7.3.30.0130.00014.49
7.3.20.0090.00616.55
7.3.10.0090.00516.62
7.3.00.0070.00616.63
7.2.330.0100.01416.80
7.2.320.0140.00316.59
7.2.310.0030.01316.43
7.2.300.0030.01516.61
7.2.290.0060.00916.73
7.2.250.0070.01115.27
7.2.240.0040.01215.14
7.2.230.0000.01614.63
7.2.220.0000.01214.98
7.2.210.0030.01514.86
7.2.200.0030.00715.21
7.2.190.0080.00615.06
7.2.180.0040.00914.99
7.2.170.0070.00315.18
7.2.130.0060.00616.92
7.2.120.0110.00517.04
7.2.110.0050.00716.84
7.2.100.0060.00516.68
7.2.90.0090.00517.04
7.2.80.0020.00916.90
7.2.70.0030.01016.99
7.2.60.0070.00516.89
7.2.50.0050.01216.90
7.2.40.0040.01317.08
7.2.30.0050.00616.79
7.2.20.0170.00917.31
7.2.10.0180.01117.15
7.2.00.0130.01017.22
7.1.330.0080.00615.85
7.1.320.0030.01015.80
7.1.310.0070.00415.66
7.1.300.0110.00315.78
7.1.290.0080.00315.80
7.1.280.0080.00815.89
7.1.270.0030.01215.54
7.1.260.0040.00715.71
7.1.250.0090.00515.79
7.1.200.0060.00615.70
7.1.140.0300.01316.96
7.1.130.0400.00716.69
7.1.120.0350.01316.66
7.1.110.0410.00615.67
7.1.100.0320.01316.32
7.1.90.0320.01716.21
7.1.80.0270.00616.09
7.1.70.0290.00615.37
7.1.60.1510.01933.25
7.1.50.0540.01133.02
7.1.40.0470.02032.56
7.1.30.0550.00632.47
7.1.20.0590.01232.66
7.1.10.0450.01514.70
7.1.00.0310.01014.74

preferences:
96.41 ms | 400 KiB | 5 Q