3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test( $limited_email_domains ) { $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); var_dump( gettype( $limited_email_domains ) ); } test( 0 ); test( false ); test( '' ); test( array( 'foo', 'bar', 'baz' ) ); // This one will throw a fatal error as str_replace's third param must be string or array. test( (object) array( 'foo', 'bar', 'baz' ) );

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.0140.00718.68
8.3.50.0130.00717.87
8.3.40.0070.00722.04
8.3.30.0140.00018.89
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.180.0140.00725.92
8.2.170.0040.01122.96
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0040.00422.08
8.2.100.0030.00717.72
8.2.90.0040.00417.63
8.2.80.0000.00818.94
8.2.70.0130.00017.63
8.2.60.0030.00617.68
8.2.50.0040.00418.07
8.2.40.0070.00017.97
8.2.30.0080.00018.07
8.2.20.0040.00417.96
8.2.10.0000.00719.33
8.2.00.0040.00419.23
8.1.280.0090.00925.92
8.1.270.0000.00824.00
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.78
8.1.230.0060.00620.77
8.1.220.0060.00317.80
8.1.210.0060.00318.77
8.1.200.0070.00317.13
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0040.00418.64
8.1.160.0030.00618.90
8.1.150.0000.00718.78
8.1.140.0040.00318.81
8.1.130.0000.00720.16
8.1.120.0000.00717.38
8.1.110.0000.00817.45
8.1.100.0030.00617.46
8.1.90.0030.00617.50
8.1.80.0050.00217.42
8.1.70.0110.00017.46
8.1.60.0000.00817.63
8.1.50.0060.00317.49
8.1.40.0050.00317.43
8.1.30.0040.00417.64
8.1.20.0050.00317.49
8.1.10.0000.00817.55
8.1.00.0060.00317.45
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0030.00318.30
8.0.270.0070.00017.94
8.0.260.0070.00018.59
8.0.250.0040.00416.93
8.0.240.0000.00716.84
8.0.230.0040.00417.03
8.0.220.0000.00716.91
8.0.210.0050.00316.88
8.0.200.0030.00316.94
8.0.190.0000.00716.90
8.0.180.0040.00416.95
8.0.170.0040.00416.91
8.0.160.0040.00416.87
8.0.150.0040.00416.92
8.0.140.0000.00816.96
8.0.130.0000.00513.44
8.0.120.0000.00716.86
8.0.110.0040.00416.85
8.0.100.0000.00716.91
8.0.90.0070.00017.04
8.0.80.0090.00516.96
8.0.70.0040.00417.02
8.0.60.0000.00716.93
8.0.50.0040.00416.98
8.0.30.0030.01517.02
8.0.20.0090.01317.11
8.0.10.0030.00516.98
8.0.00.0140.00616.65
7.4.330.0020.00215.55
7.4.320.0000.00616.65
7.4.300.0020.00516.37
7.4.290.0000.00716.59
7.4.280.0000.00716.63
7.4.270.0040.00416.53
7.4.260.0040.00716.47
7.4.250.0060.00316.62
7.4.240.0040.00416.43
7.4.230.0000.00716.45
7.4.220.0030.00416.33
7.4.210.0070.00916.54
7.4.200.0030.00316.43
7.4.130.0130.00816.50
7.4.120.0120.01216.60
7.4.110.0080.01316.53
7.4.100.0060.01916.46
7.4.90.0000.01916.63
7.4.80.0050.01316.49
7.4.70.0100.01416.39
7.4.60.0100.01316.24
7.4.50.0130.01316.43
7.4.40.0180.00716.32
7.4.30.0130.01316.29
7.4.20.0140.00716.23
7.4.10.0090.00916.58
7.4.00.0170.00616.57
7.3.330.0040.00416.29
7.3.320.0030.00313.23
7.3.310.0050.00516.38
7.3.300.0030.00516.32
7.3.290.0100.00916.38
7.3.260.0030.01316.53
7.3.240.0120.01216.30
7.3.230.0080.01116.54
7.3.220.0180.00716.34
7.3.210.0140.01016.33
7.3.200.0070.01316.28
7.3.190.0170.00816.31
7.3.180.0160.01016.28
7.3.170.0120.00616.42
7.3.160.0150.00916.48
7.3.150.0140.00616.24
7.3.140.0170.00616.26
7.3.130.0150.01116.14
7.3.120.0170.00516.05
7.3.110.0170.00716.30
7.3.100.0130.00616.23
7.3.90.0100.01316.24
7.3.80.0210.00616.37
7.3.70.0120.01216.14
7.3.60.0140.00616.16
7.3.50.0190.00016.14
7.3.40.0120.00616.24
7.3.30.0150.00916.11
7.3.20.0150.01316.16
7.3.10.0130.00716.14
7.3.00.0130.01016.26
7.2.340.0140.00716.27
7.2.330.0130.00716.52
7.2.320.0170.00616.57
7.2.310.0190.00816.09
7.2.300.0270.00016.54
7.2.290.0250.00316.29
7.2.280.0160.00416.76
7.2.270.0080.01216.39
7.2.260.0090.01216.38
7.2.250.0200.01016.18
7.2.240.0070.01316.59
7.2.230.0140.00516.41
7.2.220.0120.01316.54
7.2.210.0170.01016.48
7.2.200.0170.00616.59
7.2.190.0130.01016.50
7.2.180.0160.00616.34
7.2.170.0170.00516.39
7.2.160.0150.00916.21
7.2.150.0140.01016.38
7.2.140.0100.01116.53
7.2.130.0170.00816.31
7.2.120.0140.00716.32
7.2.110.0060.01816.36
7.2.100.0100.00916.73
7.2.90.0060.01216.52
7.2.80.0050.01516.53
7.2.70.0070.01816.68
7.2.60.0260.01116.64
7.2.50.0260.00816.47
7.2.40.0190.00616.29
7.2.30.0130.00716.63
7.2.20.0170.01016.55
7.2.10.0170.00316.60
7.2.00.0080.01116.67

preferences:
76.92 ms | 400 KiB | 5 Q