3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_assert($string, $arguments = array()) { // Make sure we don't pass in an empty string. assert('$string !== \'\' && (empty($arguments) || strtr($string, $arguments) !== \'\')'); // Make sure we don't translate unnecessarily. assert('empty($arguments) || strtr($string, $arguments) != implode($arguments)'); } test_assert('@test f', ['@test' => 'test']);

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.0090.00616.63
8.3.50.0150.00316.14
8.3.40.0070.00718.45
8.3.30.0060.00918.77
8.3.20.0070.00020.34
8.3.10.0040.00421.90
8.3.00.0000.00819.56
8.2.180.0090.00916.38
8.2.170.0140.00022.96
8.2.160.0060.00920.48
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0090.00020.47
8.2.100.0080.00417.72
8.2.90.0060.00319.06
8.2.80.0070.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0000.00821.18
8.2.30.0070.00317.93
8.2.20.0040.00417.52
8.2.10.0000.00717.91
8.2.00.0040.00417.92
8.1.280.0100.01025.92
8.1.270.0060.00320.25
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00423.79
8.1.230.0060.00622.66
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00317.10
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0000.00818.36
8.1.160.0060.00321.93
8.1.150.0000.00718.75
8.1.140.0030.00517.31
8.1.130.0030.00317.57
8.1.120.0050.00317.24
8.1.110.0070.00317.30
8.1.100.0040.00417.25
8.1.90.0040.00417.30
8.1.80.0040.00417.25
8.1.70.0000.00717.28
8.1.60.0000.00717.55
8.1.50.0000.00817.44
8.1.40.0030.00617.42
8.1.30.0030.00517.61
8.1.20.0000.00817.57
8.1.10.0030.00517.46
8.1.00.0000.00717.29
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0050.00318.32
8.0.270.0030.00317.12
8.0.260.0030.00318.31
8.0.250.0070.00016.89
8.0.240.0000.01016.90
8.0.230.0030.00316.82
8.0.220.0000.00716.68
8.0.210.0060.00316.82
8.0.200.0000.00716.89
8.0.190.0050.00316.76
8.0.180.0000.01116.89
8.0.170.0030.00616.88
8.0.160.0040.00416.82
8.0.150.0040.00416.73
8.0.140.0020.00516.79
8.0.130.0060.00013.30
8.0.120.0030.00516.75
8.0.110.0030.00516.73
8.0.100.0000.00716.79
8.0.90.0040.00416.87
8.0.80.0070.01016.85
8.0.70.0040.00416.84
8.0.60.0040.00416.81
8.0.50.0000.00716.82
8.0.30.0090.00817.17
8.0.20.0110.00817.40
8.0.10.0070.00016.82
8.0.00.0100.01116.84
7.4.330.0050.00015.08
7.4.320.0030.00316.48
7.4.300.0030.00316.39
7.4.290.0000.00716.42
7.4.280.0060.00616.57
7.4.270.0070.00016.34
7.4.260.0030.00316.29
7.4.250.0000.00816.36
7.4.240.0020.00616.59
7.4.230.0030.00316.64
7.4.220.0070.01716.44
7.4.210.0070.00716.53
7.4.200.0070.00016.54
7.4.160.0090.00616.30
7.4.150.0070.01117.40
7.4.140.0130.00817.86
7.4.130.0120.00816.52
7.4.120.0110.00616.58
7.4.110.0130.01016.46
7.4.100.0120.00616.53
7.4.90.0070.01016.56
7.4.80.0070.01019.39
7.4.70.0060.01516.26
7.4.60.0120.00616.52
7.4.50.0080.00016.73
7.4.40.0090.00616.63
7.4.30.0100.00716.53
7.4.00.0110.00614.86
7.3.330.0070.00013.27
7.3.320.0050.00013.43
7.3.310.0030.00316.28
7.3.300.0030.00316.38
7.3.290.0120.00516.42
7.3.280.0070.01316.42
7.3.270.0070.01017.40
7.3.260.0070.01016.39
7.3.250.0070.01016.52
7.3.240.0060.01016.38
7.3.230.0100.01316.40
7.3.210.0140.00416.36
7.3.200.0030.01316.46
7.3.190.0130.00316.41
7.3.180.0120.00416.43
7.3.170.0140.00616.55
7.3.160.0090.01316.46
7.3.120.0040.01114.86
7.3.110.0060.01214.83
7.3.100.0030.01015.00
7.3.90.0090.00014.77
7.3.80.0000.01414.97
7.3.70.0060.00314.68
7.3.60.0060.00614.91
7.3.50.0030.00714.92
7.3.40.0060.00614.80
7.3.30.0120.00314.99
7.3.20.0000.01816.62
7.3.10.0100.00616.55
7.3.00.0030.01016.48
7.2.330.0030.01316.66
7.2.320.0200.00016.71
7.2.310.0060.01016.76
7.2.300.0060.01616.59
7.2.290.0150.00316.42
7.2.250.0030.01714.58
7.2.240.0100.00714.95
7.2.230.0030.01014.97
7.2.220.0070.00315.29
7.2.210.0070.00415.00
7.2.200.0060.00914.79
7.2.190.0070.00715.04
7.2.180.0080.00314.93
7.2.170.0080.00815.01
7.2.120.0120.00516.78
7.2.110.0130.00016.64
7.2.100.0070.01016.33
7.2.90.0090.00916.65
7.2.80.0150.00416.78
7.2.70.0160.00316.87
7.2.60.0080.01116.71
7.2.50.0150.00316.80
7.2.40.0180.00016.77
7.2.30.0290.00316.86
7.2.20.0080.00816.80
7.2.10.0770.00716.95
7.2.00.0130.00518.04
7.1.330.0080.00815.95
7.1.320.0130.00015.73
7.1.310.0030.00915.77
7.1.300.0040.01115.85
7.1.290.0050.00315.65
7.1.280.0000.01515.61
7.1.270.0060.00915.84
7.1.260.0000.01115.75
7.1.240.0100.00315.66
7.1.230.0080.00515.76
7.1.220.0150.00815.76
7.1.210.0140.00615.51
7.1.200.0050.00915.64
7.1.190.0080.00915.89
7.1.180.0040.01215.75
7.1.170.0130.00615.79
7.1.160.0060.01215.92
7.1.150.0120.00415.85
7.1.140.0150.00015.77
7.1.130.0140.00815.41
7.1.120.0030.01515.64
7.1.110.0130.00315.84
7.1.100.0130.00616.98
7.1.90.0520.00315.70
7.1.80.0130.00415.96
7.1.70.0060.00316.35
7.1.60.0250.00617.96
7.1.50.0130.01116.48
7.1.40.0090.00615.86
7.1.30.0100.00615.90
7.1.20.0140.00715.46
7.1.10.0100.00515.79
7.1.00.0050.04319.00
7.0.320.0120.00415.21
7.0.310.0120.00415.22
7.0.300.0130.00415.46
7.0.290.0080.00415.34
7.0.280.0120.00615.23
7.0.270.0070.00715.45
7.0.260.0080.00715.26
7.0.250.0140.00514.95
7.0.240.0140.00315.55
7.0.230.0090.00915.25
7.0.220.0030.01015.23
7.0.210.0130.00315.57
7.0.200.0110.00616.06
7.0.190.0100.01015.38
7.0.180.0430.00914.97
7.0.170.0070.00715.29
7.0.160.0070.01015.40
7.0.150.0090.00915.38
7.0.140.0110.00815.14
7.0.130.0420.01415.40
7.0.120.0120.00315.54
7.0.110.0080.00515.50
7.0.100.0080.00515.32
7.0.90.0110.00315.15
7.0.80.0110.01115.21
7.0.70.0080.00815.32
7.0.60.0310.03818.63
7.0.50.0050.04016.77
7.0.40.0090.03516.89
7.0.30.0700.02616.69
7.0.20.0220.04316.76
7.0.10.0160.02016.63
7.0.00.0070.04716.59
5.6.380.0070.01014.62
5.6.370.0090.00614.35
5.6.360.0080.00514.50
5.6.350.0040.01314.54
5.6.340.0150.00314.56
5.6.330.0040.01114.38
5.6.320.0110.00613.99
5.6.310.0150.00414.43
5.6.300.0030.01114.03
5.6.290.0080.00614.27
5.6.280.0040.03317.80
5.6.270.0100.00314.20
5.6.260.0040.01214.55
5.6.250.0030.01014.44
5.6.240.0030.01214.21
5.6.230.0030.01814.48
5.6.220.0120.00914.65
5.6.210.0120.04317.69
5.6.200.0090.03716.15
5.6.190.0120.04517.31
5.6.180.0070.04617.35
5.6.170.0180.03317.42
5.6.160.0120.02317.46
5.6.150.0080.02316.28
5.6.140.0100.03216.25
5.6.130.0030.04916.29
5.6.120.0070.02717.67
5.6.110.0090.04417.55
5.6.100.0070.03417.71
5.6.90.0110.04517.81
5.6.80.0090.04117.28
5.6.70.0100.00714.34
5.6.60.0150.00314.11
5.6.50.0110.00414.20
5.6.40.0030.01113.93
5.6.30.0100.00714.15
5.6.20.0070.01114.33
5.6.10.0040.00814.06
5.6.00.0140.00313.94
5.5.380.0070.00710.95
5.5.370.0030.01010.90
5.5.360.0070.00411.27
5.5.350.0150.04215.73
5.5.340.0120.02814.69
5.5.330.0160.03715.78
5.5.320.0060.02615.81
5.5.310.0150.02315.84
5.5.300.0060.02814.59
5.5.290.0130.01714.75
5.5.280.0070.02515.99
5.5.270.0060.04816.09
5.5.260.0110.04315.84
5.5.250.0100.04115.91
5.5.240.0270.03215.56
5.5.230.0110.00311.05
5.5.220.0110.00011.06
5.5.210.0070.00711.14
5.5.200.0110.00011.18
5.5.190.0080.00411.13
5.5.180.0060.00911.30
5.5.170.0150.00414.05
5.5.160.0100.00010.93
5.5.150.0040.01111.23
5.5.140.0040.00411.00
5.5.130.0040.00810.79
5.5.120.0110.00411.02
5.5.110.0100.00611.07
5.5.100.0060.00310.89
5.5.90.0110.00511.05
5.5.80.0080.00410.86
5.5.70.0000.01111.02
5.5.60.0110.00011.00
5.5.50.0110.00411.21
5.5.40.0070.00411.06
5.5.30.0090.00911.11
5.5.20.0030.00611.04
5.5.10.0100.00311.05
5.5.00.0110.00711.20
5.4.450.0500.03915.44
5.4.440.0380.03015.38
5.4.430.0490.01715.13
5.4.420.0440.02715.22
5.4.410.0400.02815.12
5.4.400.0330.02515.22
5.4.390.0320.03415.01
5.4.380.0330.02714.82
5.4.370.0300.03015.28
5.4.360.0310.02814.92
5.4.350.0300.02815.17
5.4.340.0360.02915.15
5.4.330.0050.00810.95
5.4.320.0380.02915.16
5.4.310.0390.02315.07
5.4.300.0390.02715.18
5.4.290.0420.02715.16
5.4.280.0420.02814.97
5.4.270.0400.03215.07
5.4.260.0450.03915.06
5.4.250.0360.03415.29
5.4.240.0350.03315.10
5.4.230.0310.04015.15
5.4.220.0280.03015.21
5.4.210.0310.02914.97
5.4.200.0230.03113.93
5.4.190.0340.03114.97
5.4.180.0440.03115.10
5.4.170.0250.03214.97
5.4.160.0390.03214.87
5.4.150.0350.02515.10
5.4.140.0280.03313.77
5.4.130.0280.02713.75
5.4.120.0330.02813.76
5.4.110.0320.02713.63
5.4.100.0350.03713.74
5.4.90.0330.03313.85
5.4.80.0410.03313.74
5.4.70.0370.02713.60
5.4.60.0430.02513.63
5.4.50.0380.02713.39
5.4.40.0470.02813.65
5.4.30.0390.02613.56
5.4.20.0340.03213.67
5.4.10.0370.02713.72
5.4.00.0340.02713.49

preferences:
50.03 ms | 400 KiB | 5 Q