3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all("?john?",$str) === preg_match_all("?mary?", $str);

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.00718.45
8.3.50.0180.00616.53
8.3.40.0140.00018.96
8.3.30.0070.01018.70
8.3.20.0040.00420.73
8.3.10.0040.00421.93
8.3.00.0040.00419.73
8.2.180.0100.00616.50
8.2.170.0130.00922.96
8.2.160.0060.00920.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00420.22
8.2.120.0040.00426.35
8.2.110.0060.00320.34
8.2.100.0110.00317.84
8.2.90.0030.00519.09
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0040.00417.91
8.2.50.0030.00618.10
8.2.40.0000.00820.52
8.2.30.0080.00020.80
8.2.20.0020.00517.88
8.2.10.0000.00718.01
8.2.00.0040.00417.89
8.1.280.0000.01425.92
8.1.270.0050.00323.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.65
8.1.230.0080.00319.20
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0050.00517.13
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0040.00418.89
8.1.150.0000.00818.70
8.1.140.0040.00419.53
8.1.130.0000.00718.71
8.1.120.0040.00417.50
8.1.110.0040.00417.38
8.1.100.0040.00417.43
8.1.90.0040.00417.48
8.1.80.0000.00717.43
8.1.70.0000.00717.30
8.1.60.0000.01017.47
8.1.50.0000.00817.54
8.1.40.0110.00417.54
8.1.30.0000.00717.66
8.1.20.0040.00417.68
8.1.10.0000.00817.59
8.1.00.0000.00817.49
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.33
8.0.270.0000.00717.14
8.0.260.0050.00316.88
8.0.250.0030.00317.00
8.0.240.0080.00017.04
8.0.230.0000.00716.89
8.0.220.0000.00716.98
8.0.210.0050.00316.95
8.0.200.0000.00616.96
8.0.190.0040.00416.99
8.0.180.0000.00816.88
8.0.170.0070.00016.96
8.0.160.0030.00516.98
8.0.150.0080.00016.88
8.0.140.0000.00716.81
8.0.130.0030.00313.35
8.0.120.0050.00216.82
8.0.110.0050.00217.00
8.0.100.0000.00716.83
8.0.90.0090.00016.85
8.0.80.0140.00616.91
8.0.70.0040.00417.03
8.0.60.0040.00417.03
8.0.50.0040.00416.95
8.0.30.0100.00817.05
8.0.20.0110.00817.41
8.0.10.0000.00717.07
8.0.00.0070.01016.64
7.4.330.0030.00315.55
7.4.320.0000.00616.64
7.4.300.0000.00616.74
7.4.290.0040.00416.58
7.4.280.0040.00416.77
7.4.270.0070.00016.74
7.4.260.0030.00313.39
7.4.250.0000.00716.59
7.4.240.0070.00016.61
7.4.230.0040.00216.71
7.4.220.0090.00916.80
7.4.210.0040.01216.73
7.4.200.0050.00216.53
7.4.160.0090.00716.70
7.4.150.0220.00317.40
7.4.140.0130.00717.86
7.4.130.0130.01016.52
7.4.120.0110.00816.60
7.4.110.0000.01616.53
7.4.100.0140.00316.38
7.4.90.0040.01416.73
7.4.80.0190.00319.39
7.4.70.0110.00816.68
7.4.60.0120.00316.60
7.4.50.0070.00716.65
7.4.40.0180.00616.69
7.4.30.0100.00716.96
7.4.00.0080.00814.94
7.3.330.0030.00313.23
7.3.320.0050.00013.30
7.3.310.0000.00716.39
7.3.300.0000.00716.44
7.3.290.0030.00316.31
7.3.280.0070.00816.36
7.3.270.0070.01017.40
7.3.260.0090.00916.55
7.3.250.0100.00816.46
7.3.240.0080.00916.41
7.3.230.0070.01416.48
7.3.210.0170.00016.36
7.3.200.0070.01016.63
7.3.190.0100.00716.50
7.3.180.0130.00716.61
7.3.170.0100.01016.29
7.3.160.0060.00916.38
7.3.120.0050.01114.80
7.3.110.0080.00814.97
7.3.100.0050.01114.85
7.3.90.0030.00914.72
7.3.80.0020.01514.88
7.3.70.0040.00814.82
7.3.60.0050.00714.87
7.3.50.0040.01114.91
7.3.40.0040.01214.97
7.3.30.0050.00914.84
7.3.20.0070.01016.52
7.3.10.0090.00716.58
7.3.00.0040.01116.88
7.2.330.0090.00916.78
7.2.320.0140.00316.72
7.2.310.0030.01316.65
7.2.300.0090.00616.71
7.2.290.0080.00816.49
7.2.250.0130.00615.03
7.2.240.0050.01114.98
7.2.230.0070.00714.98
7.2.220.0030.01415.02
7.2.210.0100.00414.95
7.2.200.0060.00714.82
7.2.190.0110.00214.87
7.2.180.0080.00815.10
7.2.170.0030.01314.80
7.2.160.0090.00615.04
7.2.150.0040.00816.79
7.2.140.0000.01417.02
7.2.130.0000.01017.03
7.2.120.0070.01016.91
7.2.110.0030.01016.67
7.2.100.0030.00916.69
7.2.90.0100.00317.01
7.2.80.0030.01017.02
7.2.70.0070.01016.70
7.2.60.0060.00717.10
7.2.50.0090.00916.77
7.2.40.0030.00716.93
7.2.30.0000.01417.00
7.2.20.0070.00717.03
7.2.10.0070.00716.85
7.2.00.0030.01118.26
7.1.330.0100.00515.97
7.1.320.0080.00615.91
7.1.310.0030.00815.81
7.1.300.0030.00715.89
7.1.290.0070.00715.68
7.1.280.0030.01515.77
7.1.270.0090.00716.04
7.1.260.0050.00815.75
7.1.250.0120.00315.45
7.1.200.0080.00315.86
7.1.100.0050.00818.13
7.1.70.0000.01315.50
7.1.60.0330.01032.99
7.1.50.0300.00732.91
7.1.40.1830.02332.31
7.1.30.1970.01732.66
7.1.20.0330.00332.42
7.1.10.0030.01314.89
7.1.00.0900.01714.99
7.0.200.0130.01015.13
7.0.190.1670.00714.66
7.0.180.0070.01314.45
7.0.170.0230.01314.48
7.0.160.1500.01714.53
7.0.150.0000.01714.47
7.0.140.1700.00714.73
7.0.130.1700.01314.75
7.0.120.0030.01714.53
7.0.110.0030.01314.62
7.0.100.1830.01314.50
7.0.90.0770.01314.58
7.0.80.0100.00714.62
7.0.70.0470.01014.32
7.0.60.0070.01014.48
7.0.50.0030.01314.71
7.0.40.0170.01314.69
7.0.30.0000.01714.77
7.0.20.0170.01314.64
7.0.10.0300.02314.78
7.0.00.0000.01714.68

preferences:
51.91 ms | 400 KiB | 5 Q