3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export( preg_split( '#\([^)]*\)(*SKIP)(*FAIL)|\|#', 'Hello (sir|maam).|Hi there!' ) );

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.0140.00718.41
8.3.60.0140.00716.75
8.3.50.0140.00416.69
8.3.40.0090.00921.89
8.3.30.0090.00618.89
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.190.0120.00816.75
8.2.180.0040.01116.75
8.2.170.0070.01318.83
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.93
8.2.110.0100.01322.08
8.2.100.0040.01920.58
8.2.90.0100.01320.64
8.2.80.0180.00420.75
8.2.70.0130.01020.62
8.2.60.0200.00320.70
8.2.50.0140.00420.62
8.2.40.0080.01220.71
8.2.30.0120.00920.55
8.2.20.0070.01120.43
8.2.10.0120.00920.38
8.2.00.0070.01020.57
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0110.00020.35
8.1.230.0030.00620.27
8.1.220.0040.01520.20
8.1.210.0140.00421.79
8.1.200.0070.01020.43
8.1.190.0030.00720.08
8.1.180.0030.00620.21
8.1.170.0030.00620.39
8.1.160.0070.00320.35
8.1.150.0120.00620.63
8.1.140.0110.00720.23
8.1.130.0120.00620.41
8.1.120.0120.00620.25
8.1.110.0140.00320.30
8.1.100.0060.00320.41
8.1.90.0030.00720.41
8.1.80.0070.00320.32
8.1.70.0000.01020.34
8.1.60.0100.00020.54
8.1.50.0060.00320.37
8.1.40.0040.00720.54
8.1.30.0000.01020.45
8.1.20.0030.00620.61
8.1.10.0070.00320.39
8.1.00.0090.00020.40
8.0.300.0000.01019.64
8.0.290.0030.00619.45
8.0.280.0090.00019.75
8.0.270.0000.00919.69
8.0.260.0100.00019.77
8.0.250.0030.00619.76
8.0.240.0030.00619.58
8.0.230.0040.00419.69
8.0.220.0060.00319.81
8.0.210.0000.01019.69
8.0.200.0060.00319.83
8.0.190.0060.00319.76
8.0.180.0070.00319.57
8.0.170.0000.01019.88
8.0.160.0000.00919.70
8.0.150.0060.00319.64
8.0.140.0060.00319.75
8.0.130.0070.00319.69
8.0.120.0070.00319.49
8.0.110.0050.00519.95
8.0.100.0030.00619.70
8.0.90.0060.00319.57
8.0.80.0000.01019.78
8.0.70.0000.01019.76
8.0.60.0070.00319.57
8.0.50.0060.00319.62
8.0.30.0070.00419.75
8.0.20.0070.00319.74
8.0.10.0030.00619.59

preferences:
30.77 ms | 401 KiB | 5 Q