3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mysqli_real_escape_string($a) { return $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.60.0040.01118.43
8.3.50.0130.00921.20
8.3.40.0110.00418.84
8.3.30.0070.00720.20
8.3.20.0040.00420.27
8.3.10.0050.00321.92
8.3.00.0030.00622.30
8.2.180.0100.01018.29
8.2.170.0170.00322.96
8.2.160.0030.01022.09
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0060.00322.25
8.2.100.0040.00717.84
8.2.90.0060.00319.17
8.2.80.0000.00719.15
8.2.70.0000.00917.50
8.2.60.0080.00018.03
8.2.50.0000.00818.07
8.2.40.0000.00918.16
8.2.30.0040.00418.06
8.2.20.0000.00817.72
8.2.10.0040.00417.74
8.2.00.0080.00317.73
8.1.280.0150.00025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.66
8.1.230.0080.00419.01
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0080.00017.38
8.1.190.0030.00617.53
8.1.180.0050.00319.14
8.1.170.0000.00818.65
8.1.160.0040.00420.59
8.1.150.0040.00418.64
8.1.140.0000.00717.52
8.1.130.0000.00817.81
8.1.120.0050.00317.50
8.1.110.0040.00417.36
8.1.100.0040.00417.50
8.1.90.0030.00317.52
8.1.80.0070.00017.51
8.1.70.0000.00717.41
8.1.60.0000.00917.52
8.1.50.0000.00717.57
8.1.40.0040.00417.51
8.1.30.0000.00717.64
8.1.20.0040.00417.54
8.1.10.0040.00417.45
8.1.00.0030.00617.56
8.0.300.0040.00418.77
8.0.290.0060.00317.05
8.0.280.0030.00318.48
8.0.270.0000.00717.17
8.0.260.0040.00416.81
8.0.250.0000.00716.89
8.0.240.0000.00817.00
8.0.230.0040.00416.81
8.0.220.0000.00716.90
8.0.210.0030.00316.78
8.0.200.0000.00716.99
8.0.190.0080.00017.04
8.0.180.0000.00716.97
8.0.170.0040.00416.82
8.0.160.0040.00416.77
8.0.150.0040.00416.83
8.0.140.0000.00816.77
8.0.130.0000.00513.29
8.0.120.0000.00816.86
8.0.110.0040.00416.88
8.0.100.0000.00716.83
8.0.90.0000.00716.78
8.0.80.0140.00416.88
8.0.70.0050.00316.76
8.0.60.0040.00416.78
8.0.50.0040.00416.82
8.0.30.0140.00416.89
8.0.20.0120.00617.40
8.0.10.0040.00417.00
8.0.00.0100.01416.85
7.4.330.0020.00215.21
7.4.320.0030.00316.52
7.4.300.0000.00616.50
7.4.290.0000.00716.52
7.4.280.0030.00316.48
7.4.270.0060.00016.59
7.4.260.0050.00013.25
7.4.250.0080.00016.42
7.4.240.0030.00416.47
7.4.230.0030.00316.53
7.4.220.0110.00716.56
7.4.210.0070.01216.47
7.4.200.0070.00016.50
7.4.190.0030.00516.69
7.4.160.0090.00616.53
7.4.150.0170.00017.40
7.4.140.0100.01117.86
7.4.130.0080.01116.58
7.4.120.0140.00816.54
7.4.110.0090.00916.50
7.4.100.0070.01016.48
7.4.90.0130.00416.50
7.4.80.0090.00919.39
7.4.70.0100.00716.39
7.4.60.0100.01316.44
7.4.50.0040.00416.51
7.4.40.0030.01022.77
7.4.30.0090.00916.54
7.4.00.0090.00614.88
7.3.330.0060.00013.17
7.3.320.0000.00613.20
7.3.310.0000.00716.41
7.3.300.0070.00016.27
7.3.290.0060.01316.40
7.3.280.0120.00416.33
7.3.270.0160.00017.40
7.3.260.0100.00716.53
7.3.250.0130.00516.38
7.3.240.0090.00816.36
7.3.230.0120.00616.50
7.3.210.0130.00316.40
7.3.200.0040.01219.39
7.3.190.0090.00616.52
7.3.180.0060.01016.31
7.3.170.0130.00916.37
7.3.160.0030.01416.47
7.3.120.0030.01014.86
7.2.330.0090.00916.70
7.2.320.0120.00916.77
7.2.310.0030.01316.45
7.2.300.0130.00316.57
7.2.290.0100.00716.45
7.2.60.0030.01017.02
7.2.50.0100.00317.04
7.1.200.0060.00915.71
7.1.70.0000.00717.22
7.1.60.0070.01819.32
7.1.50.0060.01617.00
7.1.00.0000.05022.36
7.0.200.0000.00716.61
7.0.140.0030.07322.04
7.0.60.0200.08321.63
7.0.50.0070.03717.89
7.0.40.0030.06020.30
7.0.30.0270.08320.16
7.0.20.0330.07720.23
7.0.10.0070.08720.05
7.0.00.0070.04320.25
5.6.280.0100.06721.13
5.6.210.0070.05320.77
5.6.200.0030.05718.16
5.6.190.0100.09020.47
5.6.180.0030.04020.52
5.6.170.0330.07020.44
5.6.160.0130.07720.54
5.6.150.0000.05318.18
5.6.140.0100.04718.14
5.6.130.0130.08318.28
5.6.120.0130.04020.99
5.6.110.0030.09021.03
5.6.100.0070.08020.96
5.6.90.0100.08720.88
5.6.80.0030.06020.41
5.5.350.0200.04720.35
5.5.340.0000.08318.04
5.5.330.0200.05720.21
5.5.320.0200.04320.34
5.5.310.0270.06020.24
5.5.300.0100.08017.98
5.5.290.0070.08317.98
5.5.280.0130.06020.88
5.5.270.0000.04320.96
5.5.260.0170.07020.88
5.5.250.0000.04720.57
5.5.240.0230.02320.29
5.4.450.2900.03719.32
5.4.440.0100.03319.56
5.4.430.1500.04719.45
5.4.420.2930.03019.37
5.4.410.3130.03319.33
5.4.400.3870.03018.99
5.4.390.4230.03719.13
5.4.380.3770.03719.13
5.4.370.4100.03719.20
5.4.360.3870.03319.13
5.4.350.4000.03718.97
5.4.340.4300.04319.13
5.4.320.3400.03718.93
5.4.310.4230.04019.27
5.4.300.3500.03719.21
5.4.290.3430.03718.98
5.4.280.3800.03719.05
5.4.270.4230.04019.17
5.4.260.4670.03718.98
5.4.250.4100.04019.16
5.4.240.4100.04019.14
5.4.230.3600.03318.96
5.4.220.4200.03319.21
5.4.210.3830.03719.16
5.4.200.4370.03019.13
5.4.190.4230.04019.21
5.4.180.4470.03019.18
5.4.170.4370.04319.05
5.4.160.4830.04019.21
5.4.150.4370.03719.09
5.4.140.4070.03716.31
5.4.130.4130.03316.38
5.4.120.4200.03316.55
5.4.110.3500.03716.49
5.4.100.3870.03316.30
5.4.90.3730.03716.50
5.4.80.3830.03316.56
5.4.70.3770.04316.49
5.4.60.4000.03716.45
5.4.50.3930.03716.41
5.4.40.4170.03716.45
5.4.30.3600.04016.50
5.4.20.3930.03316.49
5.4.10.4130.04016.47
5.4.00.3930.03015.83
5.3.290.2970.04014.66
5.3.280.4000.03314.63
5.3.270.3530.03014.68
5.3.260.4730.03714.61
5.3.250.4430.03014.62
5.3.240.3870.03714.77
5.3.230.3900.03314.65
5.3.220.3830.04014.61
5.3.210.3830.03314.52
5.3.200.3500.03714.58
5.3.190.3900.03314.66
5.3.180.3700.04014.62
5.3.170.4670.04014.61
5.3.160.3900.03714.59
5.3.150.3870.03014.72
5.3.140.3870.03714.57
5.3.130.4500.03714.56
5.3.120.3530.04714.57
5.3.110.4100.04014.57
5.3.100.3900.03714.09
5.3.90.3830.03314.18
5.3.80.3700.04313.91
5.3.70.3570.03013.97
5.3.60.4130.03714.00
5.3.50.4730.03314.01
5.3.40.2930.03713.96
5.3.30.2970.04713.90
5.3.20.3730.03313.76
5.3.10.3630.03013.63
5.3.00.2870.03313.56
5.2.170.2900.03011.15
5.2.160.2300.02011.16
5.2.150.1930.03011.16
5.2.140.2470.03011.21
5.2.130.3270.03011.26
5.2.120.2830.02711.11
5.2.110.2070.02711.03
5.2.100.2830.03011.07
5.2.90.2770.03011.04
5.2.80.2830.02711.05
5.2.70.2870.02711.15
5.2.60.2730.02311.00
5.2.50.1930.02310.98
5.2.40.2030.02311.00
5.2.30.2430.03011.00
5.2.20.1630.03311.01
5.2.10.2530.02310.92
5.2.00.2900.02010.69
5.1.60.3130.0279.97
5.1.50.3200.0209.95
5.1.40.3200.0279.98
5.1.30.2670.02710.35
5.1.20.2930.02710.51
5.1.10.2800.02310.04
5.1.00.2800.02710.09
5.0.50.1470.0238.61
5.0.40.1400.0208.44
5.0.30.1570.0338.21
5.0.20.1030.0208.22
5.0.10.1630.0238.33
5.0.00.0730.0308.23
4.4.90.1200.0175.81
4.4.80.0930.0175.90
4.4.70.0870.0175.84
4.4.60.1000.0135.82
4.4.50.0570.0175.84
4.4.40.1830.0275.84
4.4.30.1670.0135.83
4.4.20.1530.0135.84
4.4.10.1530.0075.86
4.4.00.1630.0235.93
4.3.110.1570.0135.79
4.3.100.1330.0175.73
4.3.90.1530.0175.76
4.3.80.1800.0275.71
4.3.70.1500.0175.73
4.3.60.1730.0175.73
4.3.50.1730.0135.79
4.3.40.1530.0275.73
4.3.30.1000.0205.32
4.3.20.0800.0175.32
4.3.10.1100.0235.32
4.3.00.1030.0205.32

preferences:
49.3 ms | 401 KiB | 5 Q