3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os =array("Mac/OSX","PC/Windows" ); $string = "Mac"; foreach ($os as $data) { echo $data; if (strpos($data,$string ) !== FALSE) { echo "Match found"; }else{ echo "not found"; } }

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.130.0030.00616.59
8.3.120.0040.00420.86
8.3.110.0040.00416.74
8.3.100.0080.00016.47
8.3.90.0000.00826.77
8.3.80.0070.00417.97
8.3.70.0110.00818.43
8.3.60.0070.00718.18
8.3.50.0080.01021.98
8.3.40.0090.00618.81
8.3.30.0060.00918.54
8.3.20.0070.00719.04
8.3.10.0040.00421.65
8.3.00.0060.00320.84
8.2.250.0090.00316.55
8.2.240.0090.00617.01
8.2.230.0000.01520.94
8.2.220.0050.00324.06
8.2.210.0080.00026.77
8.2.200.0070.00318.29
8.2.190.0070.00717.93
8.2.180.0150.00316.75
8.2.170.0100.00722.96
8.2.160.0030.01019.14
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00818.77
8.2.110.0060.00320.38
8.2.100.0070.00417.91
8.2.90.0030.00519.08
8.2.80.0000.00717.97
8.2.70.0080.00017.80
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0000.00920.66
8.2.30.0040.00419.16
8.2.20.0030.00517.72
8.2.10.0040.00417.96
8.2.00.0040.00418.10
8.1.300.0090.00021.78
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0000.00723.94
8.1.260.0030.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00021.13
8.1.230.0090.00317.77
8.1.220.0000.00817.77
8.1.210.0030.00618.77
8.1.200.0050.00317.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0030.00518.65
8.1.160.0040.00418.91
8.1.150.0070.00018.89
8.1.140.0040.00419.43
8.1.130.0030.00317.69
8.1.120.0030.00317.43
8.1.110.0090.00017.42
8.1.100.0000.00717.34
8.1.90.0040.00417.34
8.1.80.0030.00517.45
8.1.70.0000.00817.46
8.1.60.0040.00417.61
8.1.50.0000.00817.39
8.1.40.0000.00717.49
8.1.30.0060.00317.67
8.1.20.0000.00717.55
8.1.10.0040.00417.46
8.1.00.0050.00317.47
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0000.00717.25
8.0.260.0070.00017.23
8.0.250.0030.00316.94
8.0.240.0050.00317.01
8.0.230.0000.00716.93
8.0.220.0000.00716.87
8.0.210.0070.00016.86
8.0.200.0000.00616.90
8.0.190.0030.00616.88
8.0.180.0040.00716.80
8.0.170.0050.00316.88
8.0.160.0000.00716.92
8.0.150.0040.00416.84
8.0.140.0050.00216.84
8.0.130.0030.00313.30
8.0.120.0000.00816.75
8.0.110.0000.00716.87
8.0.100.0050.00316.79
8.0.90.0020.00516.85
8.0.80.0090.00616.84
8.0.70.0030.00516.75
8.0.60.0050.00216.70
8.0.50.0070.00016.70
8.0.30.0100.00717.03
8.0.20.0090.01017.40
8.0.10.0000.00816.91
8.0.00.0110.00617.01
7.4.330.0020.00215.08
7.4.320.0060.00016.52
7.4.300.0000.00716.50
7.4.290.0030.00316.59
7.4.280.0040.00416.57
7.4.270.0000.00716.58
7.4.260.0030.00316.54
7.4.250.0000.00816.48
7.4.240.0070.00016.51
7.4.230.0030.00316.48
7.4.220.0120.00616.55
7.4.210.0100.00716.54
7.4.200.0000.00716.50
7.4.160.0060.01216.36
7.4.150.0090.01217.40
7.4.140.0080.00917.86
7.4.130.0090.00816.57
7.4.120.0100.00716.61
7.4.110.0100.00616.41
7.4.100.0070.01016.48
7.4.90.0090.00916.63
7.4.80.0120.01219.39
7.4.70.0140.00816.60
7.4.60.0080.00816.46
7.4.50.0120.00616.31
7.4.40.0120.00816.50
7.4.30.0160.00016.68
7.4.00.0070.01014.95
7.3.330.0030.00313.20
7.3.320.0000.00513.24
7.3.310.0000.00716.31
7.3.300.0030.00316.25
7.3.290.0020.00516.31
7.3.280.0080.01016.25
7.3.270.0110.00717.40
7.3.260.0090.01316.61
7.3.250.0100.00916.32
7.3.240.0100.01416.47
7.3.230.0070.01116.39
7.3.210.0130.01016.28
7.3.200.0120.01216.44
7.3.190.0120.00916.38
7.3.180.0030.01316.41
7.3.170.0100.00716.52
7.3.160.0090.00916.45
7.3.10.0030.01016.43
7.3.00.0070.00416.80
7.2.330.0080.00816.63
7.2.320.0100.00916.70
7.2.310.0060.01616.73
7.2.300.0110.00616.71
7.2.290.0090.00916.79
7.2.130.0030.01016.60
7.2.120.0060.00616.63
7.2.110.0090.00916.92
7.2.100.0090.00316.70
7.2.90.0000.01016.76
7.2.80.0050.00916.57
7.2.70.0030.01416.78
7.2.60.0030.00916.96
7.2.50.0030.00916.83
7.2.40.0000.01316.67
7.2.30.0100.00016.71
7.2.20.0110.00316.79
7.2.10.0040.00816.85
7.2.00.0090.01318.03
7.1.250.0090.00315.74
7.1.200.0100.00615.86
7.1.100.0070.00718.34
7.1.70.0060.00617.24
7.1.60.0130.01319.90
7.1.00.0030.07722.31
7.0.200.0030.00616.95
7.0.70.1430.08719.97
7.0.60.1270.07719.91
7.0.50.1270.06020.37
7.0.40.1500.07020.48
7.0.30.0930.05720.36
7.0.20.1270.05720.39
7.0.10.1530.04720.36
7.0.00.1100.07720.27
5.6.280.0030.07021.10
5.6.220.1300.06320.49
5.6.210.1170.06320.70
5.6.200.1270.06021.05
5.6.190.0130.05321.01
5.6.180.0900.05321.09
5.6.170.1000.06721.00
5.6.160.0870.07321.10
5.6.150.1070.05721.02
5.6.140.0970.05321.02
5.6.130.1130.05321.09
5.6.120.1070.05320.99
5.6.110.0930.06721.17
5.6.100.1170.05721.11
5.6.90.0970.06321.00
5.6.80.1070.05020.46
5.6.70.0970.05320.43
5.6.60.0970.05720.48
5.6.50.0630.05720.40
5.6.40.1100.06020.55
5.6.30.1130.05720.37
5.6.20.1070.05020.36
5.6.10.1070.05320.43
5.6.00.0800.06720.50
5.5.360.1030.06320.40
5.5.350.1170.06020.47
5.5.340.1370.05720.92
5.5.330.1230.06020.93
5.5.320.0070.06020.93
5.5.310.1200.05720.85
5.5.300.0830.07020.85
5.5.290.0970.06020.96
5.5.280.1130.05720.86
5.5.270.1100.05020.93
5.5.260.1130.07020.87
5.5.250.0900.05720.75
5.5.240.0970.05320.31
5.5.230.1000.06020.21
5.5.220.0930.07020.32
5.5.210.0100.06320.31
5.5.200.1100.04320.24
5.5.190.0930.06320.18
5.5.180.1100.07320.27
5.5.160.0430.06020.26
5.5.150.0600.05720.27
5.5.140.1170.04320.27
5.5.130.0930.06720.33
5.5.120.1070.06020.27
5.5.110.1130.05320.15
5.5.100.1130.05720.16
5.5.90.1100.05320.06
5.5.80.0930.04720.14
5.5.70.1100.04720.20
5.5.60.0530.05020.13
5.5.50.0800.06019.99
5.5.40.1070.05720.14
5.5.30.0930.06019.99
5.5.20.1030.05320.14
5.5.10.0900.05720.03
5.5.00.0870.06020.26

preferences:
29.11 ms | 403 KiB | 5 Q