3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = abcdef'; if (strpos($str, 'a')) { echo "Found the letter 'a'"; }

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)
5.4.240.3570.04018.95
5.4.230.2430.03019.15
5.4.220.3830.04019.21
5.4.210.4570.03719.04
5.4.200.4300.03318.91
5.4.190.4570.03719.11
5.4.180.4400.04019.13
5.4.170.4570.03318.91
5.4.160.3670.03718.91
5.4.150.4000.04019.13
5.4.140.4000.03716.31
5.4.130.3830.04016.55
5.4.120.3870.03316.23
5.4.110.3930.03316.65
5.4.100.3730.03016.25
5.4.90.3630.04016.47
5.4.80.3770.03716.56
5.4.70.3670.03316.43
5.4.60.3730.03316.45
5.4.50.4570.03316.32
5.4.40.3370.03716.50
5.4.30.2530.03316.54
5.4.20.3570.03716.43
5.4.10.3970.03016.41
5.4.00.4970.02315.89
5.3.280.0130.04014.53
5.3.270.3770.03714.69
5.3.260.3670.03014.55
5.3.250.3870.04014.55
5.3.240.3670.05014.62
5.3.230.3770.04014.39
5.3.220.3670.03714.60
5.3.210.4070.03714.52
5.3.200.4130.03014.45
5.3.190.3700.03014.52
5.3.180.3630.03314.53
5.3.170.4370.04014.49
5.3.160.3200.03314.50
5.3.150.4270.04314.49
5.3.140.3030.03314.45
5.3.130.2570.03714.48
5.3.120.3000.03714.48
5.3.110.3600.03714.49
5.3.100.3570.03313.94
5.3.90.3930.04313.81
5.3.80.3930.03013.98
5.3.70.4000.03313.93
5.3.60.3630.03313.84
5.3.50.3930.03713.89
5.3.40.3870.03314.03
5.3.30.3900.04013.85
5.3.20.3670.03313.63
5.3.10.3530.03713.60
5.3.00.3700.03013.45
5.2.170.2900.03011.03
5.2.160.3270.02311.04
5.2.150.3200.02711.13
5.2.140.3130.03711.11
5.2.130.3100.02311.03
5.2.120.3330.03011.02
5.2.110.3270.03011.09
5.2.100.3330.02311.09
5.2.90.3170.02711.26
5.2.80.3270.03010.98
5.2.70.3000.03010.97
5.2.60.3570.03011.05
5.2.50.3030.03010.94
5.2.40.2600.02310.96
5.2.30.2830.03310.89
5.2.20.2530.03010.86
5.2.10.2670.01710.87
5.2.00.2400.02710.88
5.1.60.2670.0239.95
5.1.50.2530.02310.01
5.1.40.2430.0209.95
5.1.30.2430.02710.49
5.1.20.2430.02310.34
5.1.10.2070.03010.06
5.1.00.2730.02710.08
5.0.50.1570.0208.45
5.0.40.1370.0208.25
5.0.30.1230.0308.20
5.0.20.1200.0208.26
5.0.10.1470.0278.21
5.0.00.1230.0308.30
4.4.90.1370.0205.82
4.4.80.1400.0205.89
4.4.70.1430.0135.76
4.4.60.1230.0135.86
4.4.50.1800.0135.80
4.4.40.1470.0305.80
4.4.30.1430.0205.82
4.4.20.1470.0205.87
4.4.10.1430.0205.92
4.4.00.1530.0275.87
4.3.110.1530.0205.75
4.3.100.1470.0175.76
4.3.90.1430.0205.79
4.3.80.1200.0235.76
4.3.70.1430.0135.83
4.3.60.1200.0135.73
4.3.50.1530.0175.75
4.3.40.1430.0305.73
4.3.30.0970.0235.73
4.3.20.1100.0205.73
4.3.10.0800.0175.73
4.3.00.0900.0235.73

preferences:
143.19 ms | 1398 KiB | 7 Q