3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$p = submission->data[12]['value'][0]; $p = ' asdasd 98 asd'; $p = str_replace(' ', '', $p); $p = preg_match('/^def/', $p, $matches) var_dump( $matches ); echo $p;

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.350.0160.06412.02
5.4.340.0060.04912.01
5.4.320.0070.04812.49
5.4.310.0100.05112.49
5.4.300.0160.08112.50
5.4.290.0250.13412.49
5.4.280.0130.07912.39
5.4.270.0080.03812.39
5.4.260.0080.04012.39
5.4.250.0050.05012.39
5.4.240.0120.07412.39
5.4.230.0160.06612.38
5.4.220.0110.07912.38
5.4.210.0040.04212.38
5.4.200.0120.05012.38
5.4.190.0080.05612.38
5.4.180.0060.04912.38
5.4.170.0100.06112.38
5.4.160.0160.07212.38
5.4.150.0250.12112.38
5.4.140.0160.09312.07
5.4.130.0230.12512.05
5.4.120.0170.13612.02
5.4.110.0200.13712.01
5.4.100.0150.06412.01
5.4.90.0130.07212.01
5.4.80.0140.08512.01
5.4.70.0090.05112.01
5.4.60.0070.05112.01
5.4.50.0080.05112.00
5.4.40.0110.05612.00
5.4.30.0060.05611.99
5.4.20.0080.05411.98
5.4.10.0120.05411.99
5.4.00.0070.04811.49
5.3.290.0110.04512.80
5.3.280.0100.05212.71
5.3.270.0090.05512.73
5.3.260.0100.05212.72
5.3.250.0100.04812.72
5.3.240.0100.05012.72
5.3.230.0070.05012.71
5.3.220.0050.05312.68
5.3.210.0110.04912.68
5.3.200.0070.05712.68
5.3.190.0140.09812.68
5.3.180.0090.04812.67
5.3.170.0100.04812.67
5.3.160.0050.05212.67
5.3.150.0100.04812.67
5.3.140.0070.05312.66
5.3.130.0080.05212.66
5.3.120.0080.05112.66
5.3.110.0110.08012.66
5.3.100.0110.04812.12
5.3.90.0080.04812.08
5.3.80.0170.05112.07
5.3.70.0120.04412.08
5.3.60.0070.05112.06
5.3.50.0100.05512.00
5.3.40.0140.05212.00
5.3.30.0060.04611.95
5.3.20.0080.04211.73
5.3.10.0070.04311.70
5.3.00.0110.04111.69
5.2.170.0030.0409.19
5.2.160.0080.0399.19
5.2.150.0100.0379.19
5.2.140.0080.0389.18
5.2.130.0080.0409.14
5.2.120.0030.0319.14
5.2.110.0060.0339.15
5.2.100.0050.0329.14
5.2.90.0090.0279.14
5.2.80.0040.0369.14
5.2.70.0070.0379.14
5.2.60.0100.0379.09
5.2.50.0110.0339.05
5.2.40.0060.0369.04
5.2.30.0060.0429.01
5.2.20.0110.0359.00
5.2.10.0100.0618.92
5.2.00.0110.0558.78
5.1.60.0080.0598.07
5.1.50.0060.0338.07
5.1.40.0080.0498.04
5.1.30.0100.0398.40
5.1.20.0060.0438.41
5.1.10.0050.0318.14
5.1.00.0100.0308.14
5.0.50.0050.0346.62
5.0.40.0050.0296.48
5.0.30.0050.0446.30
5.0.20.0070.0316.27
5.0.10.0080.0256.24
5.0.00.0060.0416.23
4.4.90.0070.0224.78
4.4.80.0030.0224.76
4.4.70.0020.0204.76
4.4.60.0060.0174.76
4.4.50.0050.0204.77
4.4.40.0050.0344.71
4.4.30.0050.0354.76
4.4.20.0090.0294.85
4.4.10.0050.0214.85
4.4.00.0040.0544.76
4.3.110.0060.0324.67
4.3.100.0050.0264.66
4.3.90.0070.0274.64
4.3.80.0030.0364.58
4.3.70.0050.0204.63
4.3.60.0070.0114.63
4.3.50.0050.0184.63
4.3.40.0040.0294.54
4.3.30.0040.0253.28
4.3.20.0010.0223.26
4.3.10.0020.0203.23
4.3.00.0000.0236.87

preferences:
139.26 ms | 1398 KiB | 7 Q