3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function __tostring() { return 'foo'; } } $x = new x; var_dump(is_string($x), is_string("$x"));

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.00618.29
8.3.50.0090.00618.02
8.3.40.0120.00318.36
8.3.30.0120.00618.43
8.3.20.0040.00421.77
8.3.10.0070.00021.69
8.3.00.0000.00719.66
8.2.180.0150.00618.14
8.2.170.0070.00722.96
8.2.160.0100.01022.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.22
8.2.120.0070.00026.35
8.2.110.0060.00322.30
8.2.100.0040.00718.09
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0000.01017.63
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0080.00022.38
8.2.30.0040.00419.33
8.2.20.0040.00417.61
8.2.10.0080.00017.93
8.2.00.0040.00418.03
8.1.280.0140.00025.92
8.1.270.0000.00823.96
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00321.02
8.1.230.0040.00717.64
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0000.00817.25
8.1.180.0060.00318.10
8.1.170.0030.00518.57
8.1.160.0000.00722.09
8.1.150.0000.00720.80
8.1.140.0000.00719.57
8.1.130.0070.00017.68
8.1.120.0000.00717.48
8.1.110.0000.00817.50
8.1.100.0070.00017.46
8.1.90.0040.00417.46
8.1.80.0000.00717.47
8.1.70.0000.00717.36
8.1.60.0040.00417.61
8.1.50.0030.00617.50
8.1.40.0060.00317.46
8.1.30.0040.00417.67
8.1.20.0050.00317.61
8.1.10.0030.00617.52
8.1.00.0050.00317.48
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0050.00318.45
8.0.270.0000.00717.27
8.0.260.0030.00318.44
8.0.250.0030.00316.91
8.0.240.0030.00516.91
8.0.230.0040.00417.01
8.0.220.0000.00716.88
8.0.210.0070.00016.95
8.0.200.0060.00016.95
8.0.190.0050.00316.84
8.0.180.0000.00716.91
8.0.170.0070.00016.91
8.0.160.0000.00816.87
8.0.150.0000.00716.80
8.0.140.0000.00716.85
8.0.130.0030.00313.32
8.0.120.0030.00616.84
8.0.110.0040.00416.88
8.0.100.0080.00016.73
8.0.90.0000.00716.91
8.0.80.0070.00716.77
8.0.70.0000.00716.85
8.0.60.0030.00516.95
8.0.50.0030.00516.79
8.0.30.0080.01116.88
8.0.20.0120.00717.40
8.0.10.0050.00316.89
8.0.00.0070.01016.79
7.4.330.0030.00315.08
7.4.320.0040.00416.61
7.4.300.0030.00316.60
7.4.290.0060.00016.47
7.4.280.0050.00316.51
7.4.270.0080.00016.47
7.4.260.0040.00416.58
7.4.250.0030.00316.61
7.4.240.0000.00816.57
7.4.230.0030.00316.70
7.4.220.0030.01616.56
7.4.210.0040.01116.60
7.4.200.0050.00216.32
7.4.160.0100.00716.48
7.4.150.0110.00617.40
7.4.140.0110.00817.86
7.4.130.0030.01516.54
7.4.120.0100.01116.56
7.4.110.0080.01116.47
7.4.100.0070.01116.46
7.4.90.0180.00616.33
7.4.80.0070.01019.39
7.4.70.0130.00316.60
7.4.60.0040.01216.37
7.4.50.0070.01016.24
7.4.40.0150.00616.53
7.4.30.0110.00616.34
7.4.00.0070.01014.92
7.3.330.0000.00613.10
7.3.320.0060.00013.05
7.3.310.0000.00716.34
7.3.300.0000.00616.28
7.3.290.0080.00716.20
7.3.280.0090.00816.24
7.3.270.0120.00417.40
7.3.260.0090.01116.37
7.3.250.0080.01116.37
7.3.240.0110.00616.32
7.3.230.0120.00616.39
7.3.210.0140.00716.32
7.3.200.0120.00416.23
7.3.190.0040.01416.49
7.3.180.0060.01516.36
7.3.170.0040.01216.21
7.3.160.0060.01116.39
7.2.330.0060.01216.62
7.2.320.0120.00616.49
7.2.310.0170.00616.32
7.2.300.0040.01216.58
7.2.290.0060.01316.38
7.2.00.0000.01519.27
7.1.70.0040.00417.12
7.1.60.0070.00719.75
7.1.00.0100.07022.51
7.0.200.0070.00316.80
7.0.90.0200.07320.04
7.0.80.0100.07319.91
7.0.70.0170.06319.95
7.0.60.0100.05720.07
7.0.50.0130.06020.41
7.0.40.0200.07320.34
7.0.30.0170.06320.39
7.0.20.0100.09020.22
7.0.10.0070.09020.34
7.0.00.0130.06320.23
5.6.240.0170.05020.63
5.6.230.0130.07320.75
5.6.220.0200.06020.59
5.6.210.0130.05320.63
5.6.200.0070.06721.11
5.6.190.0270.06721.06
5.6.180.0170.07721.11
5.6.170.0100.06721.05
5.6.160.0130.07021.09
5.6.150.0000.09721.11
5.6.140.0170.06021.12
5.6.130.0130.06321.02
5.6.120.0170.06321.02
5.6.110.0100.08321.19
5.6.100.0170.07321.01
5.6.90.0070.07721.00
5.6.80.0270.06020.56
5.6.70.0070.08720.52
5.6.60.0230.05320.44
5.6.50.0270.05320.47
5.6.40.0330.04720.45
5.6.30.0070.08720.44
5.6.20.0200.07720.45
5.6.10.0270.06020.55
5.6.00.0030.08320.44

preferences:
68.73 ms | 400 KiB | 5 Q