3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mysqli_real_escape_string($a) { return addslashes($a); } function callStoredProc( $storedProc ) { $args = func_get_args(); $storedProc = array_shift( $args ); foreach ( $args as $i => $arg) $args[$i] = "'" . mysqli_real_escape_string( $arg ) . "'"; $argStr = implode( ',', $args ); echo sprintf( 'call %s( %s )', $storedProc, implode( ',', $args ) ); } callStoredProc( 'something', 1, 'a', 'b\'' );

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.0110.01116.58
8.3.60.0070.00718.43
8.3.50.0090.00821.21
8.3.40.0110.00318.59
8.3.30.0100.00320.21
8.3.20.0050.00320.34
8.3.10.0030.00521.99
8.3.00.0030.00622.58
8.2.180.0110.00416.38
8.2.170.0150.00322.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0120.00426.16
8.2.120.0030.01717.75
8.2.110.0070.00322.24
8.2.100.0070.00417.91
8.2.90.0040.00419.17
8.2.80.0000.00719.35
8.2.70.0040.00417.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00718.14
8.2.30.0060.00318.14
8.2.20.0080.00017.62
8.2.10.0040.00417.73
8.2.00.0000.00917.66
8.1.280.0110.00425.92
8.1.270.0080.00624.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.95
8.1.230.0040.00719.01
8.1.220.0060.00317.76
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0000.00917.53
8.1.180.0060.00319.01
8.1.170.0000.00818.59
8.1.160.0060.00320.66
8.1.150.0000.00818.55
8.1.140.0000.00717.44
8.1.130.0040.00417.76
8.1.120.0000.00717.36
8.1.110.0040.00417.51
8.1.100.0040.00417.32
8.1.90.0000.00717.38
8.1.80.0030.00317.45
8.1.70.0040.00417.45
8.1.60.0050.00517.50
8.1.50.0080.00017.41
8.1.40.0030.00517.50
8.1.30.0040.00417.64
8.1.20.0030.00517.72
8.1.10.0000.00717.46
8.1.00.0040.00417.58
8.0.300.0000.00718.77
8.0.290.0040.00417.15
8.0.280.0030.00318.37
8.0.270.0000.00717.22
8.0.260.0000.00616.73
8.0.250.0070.00016.98
8.0.240.0000.00716.99
8.0.230.0030.00316.84
8.0.220.0040.00416.80
8.0.210.0000.00716.80
8.0.200.0040.00416.84
8.0.190.0000.00916.86
8.0.180.0070.00016.87
8.0.170.0030.00516.93
8.0.160.0030.00316.84
8.0.150.0040.00416.82
8.0.140.0030.00616.84
8.0.130.0060.00013.36
8.0.120.0000.00816.74
8.0.110.0040.00416.96
8.0.100.0000.00716.92
8.0.90.0040.00416.77
8.0.80.0030.01216.83
8.0.70.0000.00716.96
8.0.60.0030.00516.93
8.0.50.0000.00716.84
8.0.30.0120.01017.13
8.0.20.0090.00917.40
8.0.10.0070.00016.93
8.0.00.0060.00616.80
7.4.330.0030.00315.00
7.4.320.0030.00316.53
7.4.300.0040.00416.59
7.4.290.0030.00316.43
7.4.280.0000.00616.59
7.4.270.0050.00216.63
7.4.260.0000.00613.17
7.4.250.0080.00016.57
7.4.240.0030.00316.58
7.4.230.0000.00716.70
7.4.220.0080.01616.47
7.4.210.0060.01016.56
7.4.200.0030.00316.70
7.4.190.0030.00316.75
7.4.160.0100.00616.30
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0070.01316.57
7.4.120.0150.00616.49
7.4.110.0030.01516.41
7.4.100.0040.01416.44
7.4.90.0080.00816.43
7.4.80.0170.00719.39
7.4.70.0100.00616.66
7.4.60.0060.01116.47
7.4.50.0040.00416.52
7.4.40.0090.00622.77
7.4.30.0110.00616.63
7.4.00.0060.01214.90
7.3.330.0030.00313.34
7.3.320.0030.00313.25
7.3.310.0050.00316.44
7.3.300.0030.00316.27
7.3.290.0110.00316.30
7.3.280.0080.01016.34
7.3.270.0130.00317.40
7.3.260.0060.01216.47
7.3.250.0070.01016.45
7.3.240.0100.00716.67
7.3.230.0120.00616.66
7.3.210.0050.01116.41
7.3.200.0100.01019.39
7.3.190.0130.00316.57
7.3.180.0050.01116.55
7.3.170.0130.00616.68
7.3.160.0070.01116.34
7.3.120.0040.01114.75
7.2.330.0120.00916.68
7.2.320.0100.00716.57
7.2.310.0090.00916.77
7.2.300.0070.01116.45
7.2.290.0130.00316.74
7.2.60.0100.00317.01
7.1.200.0130.00015.99
7.1.70.0000.01517.22
7.1.60.0110.01519.32
7.1.50.0120.01217.13
7.1.00.0000.05022.29
7.0.200.0130.00316.61
7.0.140.0000.07722.15
7.0.60.0030.05020.02
7.0.50.0130.06717.86
7.0.40.0070.04020.09
7.0.30.0270.04020.20
7.0.20.0230.06020.23
7.0.10.0370.07020.22
7.0.00.0030.08720.20
5.6.280.0070.07020.99
5.6.210.0030.07020.51
5.6.200.0030.04318.22
5.6.190.0170.08020.38
5.6.180.0270.07320.64
5.6.170.0300.07720.50
5.6.160.0030.04320.51
5.6.150.0130.07318.34
5.6.140.0000.04718.19
5.6.130.0070.08318.18
5.6.120.0070.04020.95
5.6.110.0130.05321.01
5.6.100.0330.06321.09
5.6.90.0030.04321.11
5.6.80.0100.03720.37
5.6.70.0330.07320.25
5.5.350.0000.08020.44
5.5.340.0100.07317.98
5.5.330.0070.08320.19
5.5.320.0370.07320.31
5.5.310.0200.04020.28
5.5.300.0100.05017.95
5.5.290.0070.08018.08
5.5.280.0030.08720.74
5.5.270.0130.04320.77
5.5.260.0130.07320.65
5.5.250.0130.07320.59
5.5.240.0030.06020.05
5.4.450.0070.07719.40
5.4.440.0070.06719.64
5.4.430.0070.05019.50
5.4.420.0000.08319.32
5.4.410.0070.04319.39
5.4.400.0000.08019.06
5.4.390.0000.05318.95
5.4.380.0030.05019.08
5.4.370.0030.05319.16
5.4.360.0030.08019.24
5.4.350.0070.05019.16
5.4.340.0030.07318.98
5.4.320.0030.05019.12
5.4.310.0070.04318.98
5.4.300.0030.07719.14
5.4.290.0030.07318.88
5.4.280.0070.07319.23
5.4.270.0070.07319.09
5.4.260.0070.07019.14
5.4.250.0070.05319.05
5.4.240.0030.06319.09
5.4.230.0000.05319.21
5.4.220.0030.06319.05
5.4.210.0030.04019.07
5.4.200.0000.04018.83
5.4.190.0030.04718.93
5.4.180.0000.04019.30
5.4.170.0000.04319.20
5.4.160.0000.07719.29
5.4.150.0030.04318.85
5.4.140.0030.05016.57
5.4.130.0070.03016.56
5.4.120.0000.03716.38
5.4.110.0070.06716.33
5.4.100.0030.06316.60
5.4.90.0000.03716.60
5.4.80.0100.03716.27
5.4.70.0000.06316.48
5.4.60.0030.05016.55
5.4.50.0000.07316.53
5.4.40.0030.05016.34
5.4.30.0030.04016.52
5.4.20.0000.05016.50
5.4.10.0030.04316.18
5.4.00.0070.06316.11
5.3.290.0030.05014.67
5.3.280.0070.07014.71
5.3.270.0030.08014.61
5.3.260.0030.03714.54
5.3.250.0070.05314.52
5.3.240.0030.07314.61
5.3.230.0000.04714.52
5.3.220.0030.03314.54
5.3.210.0030.06714.48
5.3.200.0070.06714.49
5.3.190.0000.04014.54
5.3.180.0000.07014.64
5.3.170.0070.07014.55
5.3.160.0100.07014.79
5.3.150.0000.04714.48
5.3.140.0070.05014.53
5.3.130.0030.05714.46
5.3.120.0100.04314.66
5.3.110.0030.04014.48
5.3.100.0000.04013.96
5.3.90.0000.07714.03
5.3.80.0030.07314.17
5.3.70.0000.07313.94
5.3.60.0030.04313.92
5.3.50.0030.03713.87
5.3.40.0070.04013.86
5.3.30.0070.04314.06
5.3.20.0000.07313.82
5.3.10.0100.03013.79
5.3.00.0030.05313.57
5.2.170.0000.05012.34
5.2.160.0030.06012.34
5.2.150.0000.05712.34
5.2.140.0030.03012.34
5.2.130.0000.03312.34
5.2.120.0030.03712.34
5.2.110.0030.03312.34
5.2.100.0030.02712.34
5.2.90.0030.06312.34
5.2.80.0030.05312.34
5.2.70.0000.06012.34
5.2.60.0000.03312.34
5.2.50.0000.05312.34
5.2.40.0000.05312.34
5.2.30.0000.03312.34
5.2.20.0030.03312.34
5.2.10.0000.03012.34
5.2.00.0000.03712.34
5.1.60.0000.02312.34
5.1.50.0000.05312.34
5.1.40.0000.02712.34
5.1.30.0030.04012.34
5.1.20.0030.04312.34
5.1.10.0000.05312.34
5.1.00.0030.05712.34
5.0.50.0000.04312.34
5.0.40.0100.02012.34
5.0.30.0000.06712.34
5.0.20.0070.03312.34
5.0.10.0070.03312.34
5.0.00.0030.05012.34
4.4.90.0070.03012.34
4.4.80.0030.02712.34
4.4.70.0030.01712.34
4.4.60.0000.02712.34
4.4.50.0030.02712.34
4.4.40.0000.04012.34
4.4.30.0000.02012.34
4.4.20.0000.03012.34
4.4.10.0000.01712.34
4.4.00.0030.04712.34
4.3.110.0030.01312.34
4.3.100.0030.03012.34
4.3.90.0000.02312.34
4.3.80.0000.03712.34
4.3.70.0030.02012.34
4.3.60.0030.01312.34
4.3.50.0030.02012.34
4.3.40.0000.02312.34
4.3.30.0000.01712.34
4.3.20.0070.02312.34
4.3.10.0000.01712.34
4.3.00.0000.02012.34

preferences:
52.47 ms | 401 KiB | 5 Q