3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array_search( 'image/svg+xml', array( 'jpg' => 'image/jpeg', 'png' => 'image/png', 'svg' => 'image/svg+xml', 'svg' => 'text/html', 'svg' => 'text/plain', 'gif' => 'image/gif' ), true );

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.0120.00916.63
8.3.50.0110.00316.34
8.3.40.0070.01118.71
8.3.30.0090.00918.48
8.3.20.0050.00221.66
8.3.10.0000.00723.50
8.3.00.0030.00518.09
8.2.180.0140.00718.41
8.2.170.0130.00322.96
8.2.160.0100.00320.89
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0070.00020.47
8.2.120.0050.00326.35
8.2.110.0070.00320.34
8.2.100.0040.00817.78
8.2.90.0080.00019.23
8.2.80.0070.00017.97
8.2.70.0040.00417.35
8.2.60.0030.00717.68
8.2.50.0050.00318.10
8.2.40.0050.00220.41
8.2.30.0000.00721.04
8.2.20.0040.00417.93
8.2.10.0040.00417.99
8.2.00.0040.00417.93
8.1.280.0000.01525.92
8.1.270.0000.00823.82
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00023.94
8.1.230.0090.00319.46
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.00916.88
8.1.190.0040.00417.10
8.1.180.0000.00718.10
8.1.170.0030.00618.47
8.1.160.0030.00518.76
8.1.150.0000.00721.86
8.1.140.0030.00519.35
8.1.130.0070.00018.76
8.1.120.0000.00717.27
8.1.110.0000.00717.26
8.1.100.0030.00817.36
8.1.90.0030.00517.34
8.1.80.0040.00317.31
8.1.70.0040.00417.33
8.1.60.0040.00417.48
8.1.50.0040.00417.38
8.1.40.0050.00217.39
8.1.30.0090.00017.39
8.1.20.0050.00217.43
8.1.10.0000.00817.39
8.1.00.0000.00717.21
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0050.00218.38
8.0.270.0070.00017.19
8.0.260.0070.00016.75
8.0.250.0030.00316.90
8.0.240.0080.00016.73
8.0.230.0070.00016.71
8.0.220.0000.00716.75
8.0.210.0000.00716.80
8.0.200.0000.00716.81
8.0.190.0030.00616.84
8.0.180.0040.00416.68
8.0.170.0040.00416.77
8.0.160.0090.00016.80
8.0.150.0000.00716.59
8.0.140.0070.00016.61
8.0.130.0030.00313.20
8.0.120.0040.00416.72
8.0.110.0050.00316.59
8.0.100.0000.00716.65
8.0.90.0040.00416.58
8.0.80.0040.01116.76
8.0.70.0030.00516.87
8.0.60.0040.00416.80
8.0.50.0030.00616.63
8.0.30.0100.00816.90
8.0.20.0130.00717.40
8.0.10.0040.00416.82
8.0.00.0070.01016.67
7.4.330.0000.00515.55
7.4.320.0070.00016.38
7.4.300.0030.00316.26
7.4.290.0040.00416.38
7.4.280.0070.00016.46
7.4.270.0070.00016.49
7.4.260.0030.00312.99
7.4.250.0000.00716.35
7.4.240.0000.00816.28
7.4.230.0000.00716.42
7.4.220.0060.02016.39
7.4.210.0040.01116.55
7.4.200.0040.00416.29
7.4.160.0140.00416.40
7.4.150.0140.00317.40
7.4.140.0080.01417.86
7.4.130.0190.00016.41
7.4.120.0110.00716.41
7.4.110.0120.00516.50
7.4.100.0090.00916.27
7.4.90.0120.00616.43
7.4.80.0100.00619.39
7.4.70.0130.00316.38
7.4.60.0120.00316.32
7.4.50.0090.00616.28
7.4.40.0130.00716.27
7.4.30.0040.01316.54
7.4.00.0070.00914.75
7.3.330.0050.00012.86
7.3.320.0060.00012.88
7.3.310.0060.00016.18
7.3.300.0040.00416.14
7.3.290.0060.00916.08
7.3.280.0100.00816.13
7.3.270.0030.01317.40
7.3.260.0160.00216.21
7.3.250.0100.01216.19
7.3.240.0090.00716.10
7.3.230.0130.00316.38
7.3.210.0070.01016.23
7.3.200.0060.01716.25
7.3.190.0050.01116.29
7.3.180.0120.00316.39
7.3.170.0140.00716.32
7.3.160.0150.00916.10
7.3.120.0100.01014.88
7.3.110.0090.00614.90
7.3.100.0000.01414.80
7.3.90.0040.00714.72
7.3.80.0140.00414.76
7.3.70.0120.00314.67
7.3.60.0060.01214.76
7.3.50.0040.01414.83
7.3.40.0000.01514.76
7.3.30.0030.01214.51
7.3.20.0060.00316.41
7.3.10.0120.00316.70
7.3.00.0060.00316.52
7.2.330.0060.01316.65
7.2.320.0030.01316.36
7.2.310.0090.00916.39
7.2.300.0120.00616.48
7.2.290.0100.00616.33
7.2.250.0060.01015.03
7.2.240.0060.01015.05
7.2.230.0030.01114.84
7.2.220.0030.00915.06
7.2.210.0030.00914.39
7.2.200.0060.00914.62
7.2.190.0040.01214.96
7.2.180.0060.00314.75
7.2.170.0090.00614.68
7.2.60.0040.01116.53
7.2.00.0060.00919.13
7.1.330.0120.00315.55
7.1.320.0040.01215.70
7.1.310.0070.00715.64
7.1.300.0060.00915.66
7.1.290.0030.01215.58
7.1.280.0070.00715.53
7.1.270.0120.00315.72
7.1.260.0030.00615.68
7.1.200.0080.00415.42
7.1.100.0000.01417.63
7.1.70.0070.00016.92
7.1.60.0570.01332.93
7.1.50.0530.01032.89
7.1.40.0600.00732.63
7.1.30.1000.01332.50
7.1.20.0730.01332.54
7.1.10.0430.00714.55
7.1.00.1000.00314.63
7.0.200.0570.01014.87
7.0.190.0470.00714.45
7.0.180.0670.01014.27
7.0.170.0630.00314.29
7.0.160.0600.01014.45
7.0.150.0400.00714.13
7.0.140.0430.00714.21
7.0.130.0530.01314.75
7.0.120.0470.01014.49
7.0.110.0570.00714.27
7.0.100.0500.01714.56
7.0.90.0470.00714.40
7.0.80.0470.01014.32
7.0.70.0500.01014.18
7.0.60.0630.00314.07
7.0.50.0570.00714.54
7.0.40.0530.01014.75
7.0.30.0870.01314.66
7.0.20.0800.01014.38
7.0.10.0900.01714.24
7.0.00.1070.01314.48

preferences:
47.81 ms | 401 KiB | 5 Q