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', ['@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.0160.00616.59
8.3.50.0070.00716.34
8.3.40.0040.01118.63
8.3.30.0110.00318.54
8.3.20.0080.00020.20
8.3.10.0080.00021.73
8.3.00.0070.00019.19
8.2.180.0070.01118.16
8.2.170.0110.00322.96
8.2.160.0120.00320.39
8.2.150.0030.00524.18
8.2.140.0080.00624.66
8.2.130.0050.00326.16
8.2.120.0050.00317.50
8.2.110.0090.00019.39
8.2.100.0040.00717.74
8.2.90.0000.00818.92
8.2.80.0030.00517.97
8.2.70.0030.00517.38
8.2.60.0030.00617.80
8.2.50.0000.00818.10
8.2.40.0040.00421.25
8.2.30.0040.00417.95
8.2.20.0040.00417.62
8.2.10.0040.00417.93
8.2.00.0000.00717.85
8.1.280.0170.00325.92
8.1.270.0000.00820.30
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00620.84
8.1.230.0070.00417.64
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0040.00418.53
8.1.160.0040.00421.95
8.1.150.0030.00518.70
8.1.140.0080.00017.36
8.1.130.0040.00417.48
8.1.120.0000.00817.36
8.1.110.0040.00717.21
8.1.100.0030.00317.34
8.1.90.0070.00017.29
8.1.80.0000.00717.32
8.1.70.0030.00317.34
8.1.60.0040.00417.48
8.1.50.0040.00417.49
8.1.40.0000.00817.32
8.1.30.0060.00317.45
8.1.20.0040.00417.54
8.1.10.0040.00417.28
8.1.00.0080.00017.17
8.0.300.0030.00618.77
8.0.290.0040.00416.61
8.0.280.0030.00318.36
8.0.270.0070.00017.13
8.0.260.0030.00317.03
8.0.250.0050.00216.93
8.0.240.0030.00616.79
8.0.230.0000.00716.81
8.0.220.0070.00016.86
8.0.210.0060.00316.78
8.0.200.0070.00016.76
8.0.190.0000.00716.95
8.0.180.0030.00516.77
8.0.170.0080.00016.93
8.0.160.0000.00716.82
8.0.150.0030.00316.80
8.0.140.0040.00416.76
8.0.130.0050.00013.26
8.0.120.0030.00616.75
8.0.110.0080.00016.75
8.0.100.0000.00716.65
8.0.90.0080.00016.64
8.0.80.0100.00616.89
8.0.70.0000.00716.79
8.0.60.0000.00816.70
8.0.50.0040.00416.65
8.0.30.0120.00616.86
8.0.20.0090.01317.40
8.0.10.0040.00416.84
8.0.00.0170.00616.67
7.4.330.0020.00215.08
7.4.320.0070.00016.43
7.4.300.0030.00316.58
7.4.290.0060.00316.46
7.4.280.0080.00316.37
7.4.270.0000.00816.54
7.4.260.0030.00316.40
7.4.250.0040.00416.50
7.4.240.0020.00516.50
7.4.230.0000.00816.52
7.4.220.0150.00916.56
7.4.210.0070.00716.49
7.4.200.0000.00716.44
7.4.160.0030.01316.46
7.4.150.0060.01217.40
7.4.140.0170.00417.86
7.4.130.0090.00916.51
7.4.120.0060.01116.40
7.4.110.0030.01516.29
7.4.100.0160.00316.48
7.4.90.0090.00916.61
7.4.80.0140.00319.39
7.4.70.0090.01216.29
7.4.60.0000.01516.37
7.4.50.0030.00516.09
7.4.40.0140.00916.40
7.4.30.0090.00916.37
7.4.10.0090.00915.05
7.4.00.0030.01314.86
7.3.330.0000.00613.28
7.3.320.0050.00313.21
7.3.310.0070.00016.48
7.3.300.0040.00416.44
7.3.290.0070.01116.40
7.3.280.0110.00716.42
7.3.270.0100.00717.40
7.3.260.0130.00416.56
7.3.250.0100.00816.50
7.3.240.0100.01016.38
7.3.230.0070.01416.43
7.3.210.0070.01416.34
7.3.200.0150.00916.39
7.3.190.0080.00816.66
7.3.180.0100.00716.40
7.3.170.0130.00316.48
7.3.160.0100.00716.45
7.3.130.0060.00914.77
7.3.120.0070.00714.86
7.3.110.0070.01014.57
7.3.100.0030.00614.85
7.3.90.0060.00614.73
7.3.80.0030.00914.88
7.3.70.0090.00014.82
7.3.60.0150.00014.80
7.3.50.0090.00914.57
7.3.40.0070.00714.93
7.3.30.0000.01114.59
7.3.20.0100.00316.63
7.3.10.0090.00616.93
7.3.00.0030.01216.79
7.2.330.0070.01016.67
7.2.320.0110.00516.54
7.2.310.0100.00716.38
7.2.300.0100.00716.55
7.2.290.0180.00616.72
7.2.260.0090.00614.86
7.2.250.0060.01214.69
7.2.240.0100.00715.25
7.2.230.0030.01314.93
7.2.220.0060.00914.91
7.2.210.0090.00614.92
7.2.200.0090.00614.90
7.2.190.0030.01615.20
7.2.180.0060.00614.90
7.2.170.0030.01014.67
7.2.160.0040.00815.13
7.2.150.0040.01216.95
7.2.140.0040.00716.57
7.2.130.0090.00616.92
7.2.120.0090.00616.77
7.2.110.0030.01217.05
7.2.100.0070.00716.96
7.2.90.0060.00916.99
7.2.80.0120.00316.89
7.2.70.0040.00816.80
7.2.60.0060.00916.68
7.2.50.0040.01117.02
7.2.40.0050.00516.83
7.2.30.0070.00716.93
7.2.20.0030.01016.86
7.2.10.0040.01216.90
7.2.00.0030.01218.07
7.1.330.0060.00915.86
7.1.320.0030.00715.73
7.1.310.0100.00315.87
7.1.300.0100.00315.95
7.1.290.0030.01315.48
7.1.280.0030.01415.84
7.1.270.0080.00415.92
7.1.260.0000.01815.52
7.1.250.0040.01115.80
7.1.240.0030.01015.86
7.1.230.0060.00915.96
7.1.220.0030.00915.70
7.1.210.0040.00715.92
7.1.200.0050.00915.82
7.1.190.0100.00315.83
7.1.180.0080.00015.73
7.1.170.0030.00715.93
7.1.160.0040.01115.89
7.1.150.0070.01015.90
7.1.140.0060.00615.58
7.1.130.0060.00315.86
7.1.120.0110.00315.89
7.1.110.0030.01415.91
7.1.100.0110.01016.89
7.1.90.0000.01215.66
7.1.80.0060.00615.97
7.1.70.0050.00516.50
7.1.60.0030.01717.90
7.1.50.0070.01316.45
7.1.40.0090.00315.61
7.1.30.0060.00615.85
7.1.20.0040.01115.70
7.1.10.0030.01015.82
7.1.00.0050.04119.00
7.0.330.0070.00415.52
7.0.320.0040.00415.43
7.0.310.0100.00615.12
7.0.300.0000.00915.06
7.0.290.0040.01115.08
7.0.280.0030.00715.29
7.0.270.0030.01015.23
7.0.260.0060.01115.27
7.0.250.0000.00915.26
7.0.240.0080.00715.41
7.0.230.0060.00315.38
7.0.220.0070.00715.38
7.0.210.0060.00615.41
7.0.200.0090.00516.12
7.0.190.0000.01215.27
7.0.180.0070.00315.42
7.0.170.0110.00015.39
7.0.160.0000.00815.47
7.0.150.0060.00915.54
7.0.140.0030.01015.38
7.0.130.0080.00015.46
7.0.120.0100.00315.44
7.0.110.0000.01415.36
7.0.100.0030.01015.50
7.0.90.0040.01115.44
7.0.80.0070.00315.35
7.0.70.0000.00915.25
7.0.60.0050.03917.72
7.0.50.0110.03016.66
7.0.40.0030.02616.66
7.0.30.0180.03716.67
7.0.20.0130.02516.87
7.0.10.0040.02516.73
7.0.00.0000.04916.57
5.6.400.0030.01014.29
5.6.390.0060.00614.39
5.6.380.0040.00814.26
5.6.370.0090.00014.57
5.6.360.0030.01014.17
5.6.350.0070.01114.34
5.6.340.0120.00014.43
5.6.330.0070.01014.54
5.6.320.0110.00614.54
5.6.310.0070.00714.40
5.6.300.0080.00814.52
5.6.290.0000.00914.36
5.6.280.0070.03417.64
5.6.270.0100.00014.34
5.6.260.0090.00614.34
5.6.250.0090.00314.59
5.6.240.0070.00714.41
5.6.230.0040.01114.09
5.6.220.0040.01114.36
5.6.210.0090.04017.43
5.6.200.0050.02916.33
5.6.190.0060.02817.43
5.6.180.0210.04017.50
5.6.170.0180.04417.37
5.6.160.0040.02217.38
5.6.150.0020.05316.15
5.6.140.0100.03816.22
5.6.130.0030.04516.29
5.6.120.0080.04417.66
5.6.110.0120.04217.56
5.6.100.0130.04017.71
5.6.90.0030.02617.75
5.6.80.0100.03017.26
5.6.70.0060.01014.17
5.6.60.0100.00714.02
5.6.50.0040.00714.38
5.6.40.0070.01013.91
5.6.30.0000.01014.18
5.6.20.0080.00614.09
5.6.10.0030.01014.06
5.6.00.0030.01314.64
5.5.380.0120.00314.31
5.5.370.0060.00914.29
5.5.360.0030.00614.23
5.5.350.0060.02817.37
5.5.340.0070.03716.13
5.5.330.0070.03817.24
5.5.320.0050.04517.49
5.5.310.0180.04617.34
5.5.300.0050.04616.10
5.5.290.0020.05215.97
5.5.280.0070.02217.60
5.5.270.0070.02517.47
5.5.260.0050.04717.54
5.5.250.0130.04117.39
5.5.240.0090.03817.12
5.5.230.0080.00314.54
5.5.220.0070.01113.95
5.5.210.0070.00714.37
5.5.200.0000.01313.89
5.5.190.0060.01214.21
5.5.180.0030.01414.10
5.5.170.0070.00314.18
5.5.160.0140.00014.33
5.5.150.0080.00514.19
5.5.140.0040.01114.35
5.5.130.0060.00614.13
5.5.120.0070.00414.17
5.5.110.0030.00613.86
5.5.100.0060.00314.12
5.5.90.0040.00414.25
5.5.80.0090.00314.26
5.5.70.0070.00714.04
5.5.60.0070.00414.13
5.5.50.0060.00614.04
5.5.40.0000.01314.06
5.5.30.0060.00914.30
5.5.20.0040.01214.27
5.5.10.0030.00714.17
5.5.00.0060.00914.17
5.4.450.0250.02815.87
5.4.440.0320.02415.84
5.4.430.0230.03815.79
5.4.420.0330.03315.92
5.4.410.0250.03215.69
5.4.400.0280.02315.74
5.4.390.0230.02515.63
5.4.380.0170.03415.61
5.4.370.0200.03215.76
5.4.360.0210.03215.68
5.4.350.0200.03415.75
5.4.340.0330.02315.68
5.4.330.0060.00312.14
5.4.320.0280.02315.76
5.4.310.0300.03515.73
5.4.300.0230.03015.52
5.4.290.0080.02715.65
5.4.280.0030.03215.73
5.4.270.0110.02615.59
5.4.260.0160.03315.52
5.4.250.0350.03615.68
5.4.240.0260.03515.73
5.4.230.0170.03015.54
5.4.220.0130.04215.73
5.4.210.0150.03415.58
5.4.200.0130.02514.52
5.4.190.0080.02915.67
5.4.180.0100.02715.58
5.4.170.0180.03215.73
5.4.160.0130.02915.67
5.4.150.0160.04115.67
5.4.140.0070.03414.43
5.4.130.0100.02714.27
5.4.120.0070.03014.23
5.4.110.0130.02314.26
5.4.100.0100.02814.23
5.4.90.0100.02714.27
5.4.80.0100.02714.22
5.4.70.0120.03714.33
5.4.60.0090.03014.30
5.4.50.0270.02514.27
5.4.40.0280.02514.33
5.4.30.0230.02714.30
5.4.20.0230.02314.31
5.4.10.0110.02414.32
5.4.00.0100.03013.94

preferences:
57.32 ms | 400 KiB | 5 Q